/* ============================================================
   MERIDIAN PREMIUM THEME — publishscience.uz | OJS 3.4
   Complete UX/UI redesign — clean, harmonious, academic
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* ── Primary Brand ── */
  --ink-900: #0B1D35;      /* deep navy — headers, authority */
  --ink-800: #12284A;      /* nav background */
  --ink-700: #1A3561;      /* hover state */
  --ink-600: #234880;      /* lighter navy */
  --ink-100: #E8EDF5;      /* very light navy tint */
  --ink-50:  #F2F5FA;      /* near-white navy tint */

  /* ── Gold Accent ── */
  --gold-600: #A0782A;     /* dark gold — small text on white */
  --gold-500: #B8943A;     /* primary gold */
  --gold-400: #CCA94E;     /* medium gold */
  --gold-300: #DFC073;     /* light gold */
  --gold-100: #FBF3E0;     /* pale gold bg */
  --gold-50:  #FFFCF5;     /* very pale gold */

  /* ── Neutral / Surface ── */
  --white:    #FFFFFF;
  --gray-50:  #F9FAFB;
  --gray-100: #F2F4F7;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* ── Semantic Colors ── */
  --clr-link:        #1D4ED8;   /* clear accessible blue */
  --clr-link-hover:  #1E40AF;
  --clr-success-bg:  #F0FDF4;
  --clr-success:     #166534;
  --clr-success-bdr: #86EFAC;
  --clr-error-bg:    #FEF2F2;
  --clr-error:       #991B1B;
  --clr-error-bdr:   #FCA5A5;
  --clr-info-bg:     #EFF6FF;
  --clr-info:        #1E40AF;
  --clr-info-bdr:    #93C5FD;
  --clr-warn-bg:     #FFFBEB;
  --clr-warn:        #92400E;
  --clr-warn-bdr:    #FCD34D;

  /* ── Typography ── */
  --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:  'Crimson Pro', 'Georgia', serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* ── Type Scale ── */
  --text-xs:   0.75rem;    /*  12px */
  --text-sm:   0.875rem;   /*  14px */
  --text-base: 1rem;       /*  16px */
  --text-lg:   1.125rem;   /*  18px */
  --text-xl:   1.25rem;    /*  20px */
  --text-2xl:  1.5rem;     /*  24px */
  --text-3xl:  1.875rem;   /*  30px */
  --text-4xl:  2.25rem;    /*  36px */
  --text-5xl:  3rem;       /*  48px */

  /* ── Spacing (8px grid) ── */
  --s1:  0.25rem;   /*  4px */
  --s2:  0.5rem;    /*  8px */
  --s3:  0.75rem;   /* 12px */
  --s4:  1rem;      /* 16px */
  --s5:  1.25rem;   /* 20px */
  --s6:  1.5rem;    /* 24px */
  --s8:  2rem;      /* 32px */
  --s10: 2.5rem;    /* 40px */
  --s12: 3rem;      /* 48px */
  --s16: 4rem;      /* 64px */
  --s20: 5rem;      /* 80px */

  /* ── Radii ── */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.05);
  --shadow-gold: 0 4px 16px rgba(184,148,58,0.25);
  --shadow-ink: 0 4px 20px rgba(11,29,53,0.25);

  /* ── Transitions ── */
  --ease: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Layout ── */
  --max-w: 1200px;
  --header-h: 68px;
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--clr-link);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--clr-link-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--gray-900);
  font-weight: 700;
}

p { margin-bottom: var(--s4); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: var(--s6); }

/* ============================================================
   3. PAGE STRUCTURE
   ============================================================ */
.pkp_structure_page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content area: sidebar on RIGHT (OJS default) */
.pkp_structure_content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: var(--s10) var(--s6);
  gap: var(--s8);
}

.pkp_structure_content.has_sidebar {
  grid-template-columns: 1fr 280px;
}

.pkp_structure_main {
  min-width: 0;
}

/* Accessibility */
.pkp_screen_reader {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.pkp_skip_links {
  position: absolute;
  top: -999px;
  left: -999px;
  z-index: 10000;
}

.pkp_skip_links:focus-within {
  top: 0; left: 0;
}

.pkp_skip_links a {
  display: inline-block;
  padding: var(--s3) var(--s6);
  background: var(--gold-500);
  color: var(--ink-900);
  font-weight: 700;
  font-family: var(--font-sans);
}

/* ============================================================
   4. READING PROGRESS BAR
   ============================================================ */
#meridian-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  z-index: 9999;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ============================================================
   5. TOP INFO BAR (JS-injected)
   ============================================================ */
.meridian-topbar {
  background: var(--ink-900);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: var(--s2) 0;
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

.meridian-topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meridian-topbar-left {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.meridian-sep {
  color: rgba(255,255,255,0.2);
  font-size: 10px;
}

.meridian-topbar-right {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
}

/* ============================================================
   6. HEADER
   ============================================================ */
.pkp_structure_head {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ink-800);
  box-shadow: 0 2px 16px rgba(0,0,0,0.20);
  transition: background var(--ease), box-shadow var(--ease);
}

.pkp_structure_head.scrolled {
  background: rgba(18, 40, 74, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.28);
}

/* Head wrapper — logo + nav in one flex row */
.pkp_head_wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: var(--s6);
}

/* ── Logo area ── */
.pkp_site_name_wrapper {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}

.pkp_site_name {
  display: flex;
  align-items: center;
}

.pkp_site_name a.is_img {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Constrain oversized logos */
.pkp_site_name a.is_img img {
  max-height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  object-position: left center;
}

.pkp_site_name a.is_text {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: opacity var(--ease);
  max-width: 280px;
}

.pkp_site_name a.is_text:hover {
  opacity: 0.85;
  color: var(--white);
}

/* Mobile hamburger — hidden on desktop */
.pkp_site_nav_toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--s2);
  color: var(--white);
  border-radius: var(--r-sm);
  transition: background var(--ease);
  flex-shrink: 0;
  line-height: 1;
  font-size: var(--text-xl);
}

.pkp_site_nav_toggle:hover {
  background: rgba(255,255,255,0.1);
}

/* Hamburger bars (injected by JS) */
.meridian-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.meridian-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all var(--ease-slow);
}

/* ── Navigation (flex row, right-aligned) ── */
.pkp_site_nav_menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}

.pkp_navigation_primary_row {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.pkp_navigation_primary_wrapper {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

/* Primary nav list */
.pkp_navigation_primary,
.pkp_navigation_primary.pkp_nav_list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0;
}

.pkp_navigation_primary > li {
  position: relative;
  display: flex;
  align-items: center;
}

.pkp_navigation_primary > li > a {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--s4);
  color: rgba(255,255,255,0.78);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  transition: color var(--ease), background var(--ease);
}

/* Gold underline indicator */
.pkp_navigation_primary > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--s4);
  right: var(--s4);
  height: 3px;
  background: var(--gold-400);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform var(--ease-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pkp_navigation_primary > li:hover > a,
.pkp_navigation_primary > li.active > a {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.pkp_navigation_primary > li:hover > a::after,
.pkp_navigation_primary > li.active > a::after {
  transform: scaleX(1);
}

/* Dropdown */
.pkp_navigation_primary > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold-500);
  list-style: none;
  padding: var(--s2) 0;
  z-index: 300;
  animation: dropOpen 0.15s ease;
}

.pkp_navigation_primary > li:hover > ul {
  display: block;
}

@keyframes dropOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pkp_navigation_primary > li > ul > li > a {
  display: block;
  padding: var(--s3) var(--s5);
  color: var(--gray-700);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  transition: background var(--ease), color var(--ease), padding-left var(--ease);
}

.pkp_navigation_primary > li > ul > li > a:hover {
  background: var(--gold-50);
  color: var(--gold-600);
  padding-left: calc(var(--s5) + 4px);
}

/* ── Search button ── */
.pkp_navigation_search_wrapper {
  display: flex;
  align-items: center;
  margin-left: var(--s2);
}

.pkp_search {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 7px var(--s4);
  color: rgba(255,255,255,0.72);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-full);
  transition: all var(--ease);
  text-decoration: none;
}

.pkp_search:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
}

/* ── User nav ── */
.pkp_navigation_user_wrapper {
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.10);
  margin-left: var(--s3);
  padding-left: var(--s3);
}

.pkp_navigation_user,
.pkp_navigation_user.pkp_nav_list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0;
}

.pkp_navigation_user > li {
  position: relative;
  display: flex;
  align-items: center;
}

.pkp_navigation_user > li > a {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--s3);
  color: rgba(255,255,255,0.60);
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease);
}

.pkp_navigation_user > li > a:hover {
  color: var(--gold-300);
}

/* User dropdown */
.pkp_navigation_user > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: var(--white);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold-500);
  list-style: none;
  padding: var(--s2) 0;
  z-index: 300;
  animation: dropOpen 0.15s ease;
}

.pkp_navigation_user > li:hover > ul { display: block; }

.pkp_navigation_user > li > ul > li > a {
  display: block;
  padding: var(--s3) var(--s5);
  color: var(--gray-700);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  transition: background var(--ease), color var(--ease);
}

.pkp_navigation_user > li > ul > li > a:hover {
  background: var(--gold-50);
  color: var(--gold-600);
}

/* ============================================================
   7. HOMEPAGE HERO
   ============================================================ */
.page_index_journal {
  padding: 0;
}

/* Custom homepage image */
.homepage_image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.homepage_image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

.homepage_image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(11,29,53,0.65));
}

/* Text hero (when no image) */
.meridian-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink-900) 0%, var(--ink-700) 60%, #1A3A70 100%);
  padding: var(--s20) var(--s6);
  text-align: center;
  color: var(--white);
}

/* Subtle diagonal texture overlay */
.meridian-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184,148,58,0.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.meridian-hero-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--s5);
  padding: 6px var(--s4);
  border: 1px solid rgba(184,148,58,0.35);
  border-radius: var(--r-full);
  background: rgba(184,148,58,0.06);
}

/* specificity (0,2,1) beats .pkp_structure_main h2 (0,1,1) */
.meridian-hero h2.meridian-hero-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: #FFFFFF !important;
  line-height: 1.15;
  margin: 0 auto var(--s5);
  max-width: 800px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

/* specificity (0,2,1) beats .pkp_structure_main p (0,1,1) */
.meridian-hero p.meridian-hero-subtitle {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.90) !important;
  max-width: 600px;
  margin: 0 auto var(--s8);
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* ── Hero "Read more" button ── */
.meridian-hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 11px var(--s6);
  background: transparent;
  color: #FFFFFF !important;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin-top: var(--s2);
}
.meridian-hero-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: #FFFFFF !important;
  text-decoration: none;
}
.meridian-hero-btn-arrow {
  transition: transform 0.2s;
}
.meridian-hero-btn:hover .meridian-hero-btn-arrow {
  transform: translateX(4px);
}

/* ── About section ── */
.homepage_about {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--r-lg);
  padding: var(--s8);
  margin-bottom: var(--s8);
}

.homepage_about h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--ink-800);
  margin-bottom: var(--s4);
}

.homepage_about p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--gray-600);
  line-height: 1.8;
}

/* ── Current Issue ── */
.current_issue {
  margin-bottom: var(--s12);
}

/* Section header with rule — higher specificity than .pkp_structure_main h2 */
.pkp_structure_main .current_issue > h2 {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--s3);
}

.pkp_structure_main .current_issue > h2::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold-500);
  flex-shrink: 0;
}

.pkp_structure_main .current_issue > h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.current_issue_title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: var(--s8);
  line-height: 1.25;
}

/* View all issues */
a.read_more,
.current_issue .read_more {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s6);
  padding: 10px var(--s6);
  background: transparent;
  border: 2px solid var(--ink-800);
  color: var(--ink-800);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  text-decoration: none;
  transition: all var(--ease);
  letter-spacing: 0.02em;
}

a.read_more::after,
.current_issue .read_more::after {
  content: '→';
  transition: transform var(--ease);
}

a.read_more:hover,
.current_issue .read_more:hover {
  background: var(--ink-800);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

a.read_more:hover::after,
.current_issue .read_more:hover::after {
  transform: translateX(3px);
}

/* Additional home content */
.additional_content {
  padding: var(--s8);
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-200);
  margin-top: var(--s8);
}

/* ============================================================
   8. ISSUE TABLE OF CONTENTS
   Real OJS class: .obj_issue_toc (not .issue_toc)
   ============================================================ */

/* Skip-to-content nav — sr-only until keyboard focus */
.cmp_skip_to_content {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.cmp_skip_to_content:focus-within {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  overflow: visible;
  display: flex;
  justify-content: center;
  gap: var(--s6);
  background: var(--gold-500);
  padding: var(--s3) var(--s6);
}
.cmp_skip_to_content a {
  color: var(--ink-900);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  font-family: var(--font-sans);
}

/* Article list reset — removes default bullets and indent */
ul.cmp_article_list,
ol.cmp_article_list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
ul.cmp_article_list > li,
ol.cmp_article_list > li {
  padding: 0;
  margin: 0;
  list-style: none;
  border: none;
}

/* Issue TOC wrapper */
.obj_issue_toc { margin: 0; }

/* Issue heading: cover image + published date */
.obj_issue_toc .heading {
  display: flex;
  gap: var(--s5);
  align-items: flex-start;
  margin-bottom: var(--s8);
  padding: var(--s5);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
}

.obj_issue_toc .heading .cover img {
  width: 90px;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.obj_issue_toc .heading .published {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: var(--s2);
}

.obj_issue_toc .heading .published .label {
  font-weight: 600;
  color: var(--gray-400);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: var(--s2);
}

/* Each discipline section */
.obj_issue_toc .section {
  margin-bottom: var(--s8);
}

/* Section title — h3 in real OJS HTML */
.obj_issue_toc .section h3,
.obj_issue_toc .section .section_title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 0 0 var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.obj_issue_toc .section h3::before,
.obj_issue_toc .section .section_title::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--gold-500);
  flex-shrink: 0;
}

.obj_issue_toc .articles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================================================
   9. ARTICLE SUMMARY CARDS
   ============================================================ */
.obj_article_summary {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-bottom: var(--s3);
  position: relative;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease-slow);
  overflow: hidden;
}

.obj_article_summary:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Left accent bar */
.obj_article_summary::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold-500);
  opacity: 0;
  border-radius: 0 2px 2px 0;
  transition: opacity var(--ease);
}

.obj_article_summary:hover::before {
  opacity: 1;
}

/* Cover image (right float) */
.obj_article_summary .cover {
  float: right;
  margin-left: var(--s4);
  margin-bottom: var(--s2);
}

.obj_article_summary .cover img {
  width: 72px;
  height: auto;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

/* Article title — OJS uses h4.title */
.obj_article_summary .title,
.obj_article_summary h4.title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 var(--s3);
  color: inherit;
}

.obj_article_summary .title a {
  color: var(--ink-800);
  text-decoration: none;
  transition: color var(--ease);
}

.obj_article_summary .title a:hover {
  color: var(--gold-600);
}

.obj_article_summary .title .subtitle {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--gray-500);
  font-family: var(--font-sans);
  margin-top: var(--s1);
  font-style: italic;
}

/* Metadata */
.obj_article_summary .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
}

.obj_article_summary .authors {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.obj_article_summary .pages {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--gray-500);
  padding: 2px var(--s3);
  background: var(--gray-100);
  border-radius: var(--r-full);
  border: 1px solid var(--gray-200);
}

.obj_article_summary .published {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--gray-400);
}

/* Galley links row */
.obj_article_summary .galleys_links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s2);
  clear: both;
}

.obj_article_summary .galleys_links li {
  margin: 0;
}

/* ============================================================
   10. GALLEY LINKS
   ============================================================ */
a.obj_galley_link,
.pkp_galley_link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--ease);
  cursor: pointer;
  /* default: navy */
  background: var(--ink-800);
  color: var(--white);
  border: 1.5px solid transparent;
}

a.obj_galley_link:hover,
.pkp_galley_link:hover {
  background: var(--ink-900);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(11,29,53,0.2);
}

/* PDF — warm crimson */
a.obj_galley_link.pdf,
.obj_galley_link.pdf {
  background: #B91C1C;
  color: var(--white);
}

a.obj_galley_link.pdf:hover,
.obj_galley_link.pdf:hover {
  background: #991B1B;
  box-shadow: 0 3px 10px rgba(185,28,28,0.25);
}

/* HTML — ink/navy */
a.obj_galley_link.html,
.obj_galley_link.html {
  background: var(--ink-600);
  color: var(--white);
}

a.obj_galley_link.html:hover,
.obj_galley_link.html:hover {
  background: var(--ink-800);
}

/* XML/Other — outlined style */
a.obj_galley_link.xml {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--ink-600);
}

a.obj_galley_link.xml:hover {
  background: var(--ink-800);
  color: var(--white);
}

/* ============================================================
   11. ISSUE ARCHIVE PAGE
   ============================================================ */
.page_issue_archive {
  padding: var(--s6) 0;
}

.page_issue_archive h1 {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  color: var(--ink-800);
  margin-bottom: var(--s8);
  line-height: 1.2;
}

/* Archive list — handled as grid */
ul.issues_archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s6);
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.issues_archive > li {
  margin: 0;
  padding: 0;
}

/* Issue card */
.obj_issue_summary {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--ease-slow), box-shadow var(--ease-slow), border-color var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.obj_issue_summary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

/* Cover image link */
.obj_issue_summary a.cover {
  display: block;
  overflow: hidden;
  background: var(--gray-100);
  text-decoration: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
}

.obj_issue_summary a.cover img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--ease-slow);
}

.obj_issue_summary:hover a.cover img {
  transform: scale(1.03);
}

/* Issue card body — actual OJS HTML: a.cover + h2(a.title + div.series) + div.description */
.obj_issue_summary h2 {
  padding: var(--s4) var(--s4) 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.35;
}

.obj_issue_summary h2 a,
.obj_issue_summary a.title {
  display: block;
  color: var(--ink-800);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.4;
  transition: color var(--ease);
}

.obj_issue_summary h2 a:hover,
.obj_issue_summary a.title:hover {
  color: var(--gold-600);
}

.obj_issue_summary .series {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-weight: 400;
}

.obj_issue_summary .published {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-family: var(--font-sans);
  padding: var(--s2) var(--s4) 0;
}

.obj_issue_summary .description {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-family: var(--font-sans);
  line-height: 1.6;
  padding: var(--s3) var(--s4) var(--s4);
}

/* OJS issue summary details fallback wrapper */
.obj_issue_summary .obj_issue_summary_details {
  padding: var(--s4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.obj_issue_summary .read_more {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin-top: auto;
  padding-top: var(--s3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-600);
  text-decoration: none;
  transition: gap var(--ease), color var(--ease);
  font-family: var(--font-sans);
}

.obj_issue_summary .read_more::after { content: '→'; }

.obj_issue_summary .read_more:hover {
  gap: var(--s3);
  color: var(--gold-500);
}

/* ============================================================
   12. ARTICLE DETAIL PAGE
   Real HTML: article.obj_article_details > h1.page_title + div.row
             div.row > div.main_entry + div.entry_details
   ============================================================ */

/* Breadcrumbs — real OJS class: cmp_breadcrumbs */
nav.cmp_breadcrumbs {
  margin-bottom: var(--s5);
}
nav.cmp_breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--gray-400);
  gap: 0;
}
nav.cmp_breadcrumbs li {
  display: flex;
  align-items: center;
}
nav.cmp_breadcrumbs a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--ease);
  padding: 2px var(--s2);
}
nav.cmp_breadcrumbs a:hover { color: var(--gold-600); }
nav.cmp_breadcrumbs .separator {
  color: var(--gray-300);
  padding: 0 var(--s1);
}
nav.cmp_breadcrumbs .current span {
  color: var(--gray-600);
  padding: 2px var(--s2);
}

/* Page wrapper */
.pkp_page_article .pkp_structure_content {
  padding-top: var(--s8);
}

/* Article card */
.obj_article_details {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: var(--s8) var(--s8) 0;
}

/* Article title — real class: h1.page_title */
.obj_article_details h1.page_title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.3;
  margin-bottom: var(--s6);
  letter-spacing: -0.015em;
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.obj_article_details h1.page_title::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 56px; height: 3px;
  background: var(--gold-500);
  border-radius: var(--r-full);
}

/* Two-column layout */
.obj_article_details .row {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: var(--s8);
  align-items: start;
}
.obj_article_details .main_entry {
  min-width: 0;
  padding-bottom: var(--s8);
}
.obj_article_details .entry_details {
  position: sticky;
  top: calc(var(--header-h) + var(--s4));
  padding-bottom: var(--s8);
}

/* Shared h2.label pattern for all article sections */
.obj_article_details .item h2.label,
.obj_article_details .sub_item h2.label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.obj_article_details .item h2.label::before,
.obj_article_details .sub_item h2.label::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--gold-500);
  flex-shrink: 0;
}

/* ── Authors ── */
.item.authors {
  padding: var(--s4) var(--s5);
  background: var(--gray-50);
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: var(--s5);
}
.item.authors ul.authors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
}
.item.authors ul.authors li {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
}
.item.authors .name {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-800);
}
.item.authors .userGroup {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-family: var(--font-sans);
  background: var(--gray-100);
  padding: 2px var(--s2);
  border-radius: var(--r-full);
  border: 1px solid var(--gray-200);
}
.item.authors .affiliation {
  font-size: var(--text-sm);
  color: var(--gray-400);
  font-style: italic;
  margin-top: var(--s1);
  font-family: var(--font-sans);
}

/* ── Keywords ── */
.item.keywords {
  margin-bottom: var(--s5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}
.item.keywords h2.label { margin-bottom: var(--s2); }
.item.keywords .value {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── Abstract ── */
.item.abstract {
  padding: var(--s5) var(--s6);
  background: var(--gold-50);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  margin-bottom: var(--s5);
}
.item.abstract p, .abstract p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.85;
  color: var(--gray-700);
  margin: 0;
}

/* ── Downloads/Usage Stats ── */
.item.downloads_chart {
  padding: var(--s4) var(--s5);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  margin-bottom: var(--s5);
  background: var(--white);
}
.usageStatsGraph {
  width: 100%;
  height: 160px;
  display: block;
  margin-top: var(--s3);
}
.usageStatsUnavailable {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-align: center;
  padding: var(--s6) 0;
  font-style: italic;
  display: none;
}
.usageStatsUnavailable:only-child,
canvas + .usageStatsUnavailable {
  display: block;
}

/* ── Author Biographies ── */
.item.author_bios { margin-bottom: var(--s5); }
.item.author_bios ul.authors {
  list-style: none;
  padding: 0;
  margin: 0;
}
.item.author_bios .sub_item {
  padding: var(--s4);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  margin-bottom: var(--s3);
}
.item.author_bios .sub_item:last-child { margin-bottom: 0; }
.item.author_bios .sub_item .label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: var(--s2);
}
.item.author_bios .sub_item .value p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ── References ── */
.item.references {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--s5);
  margin-bottom: 0;
}
.item.references .value p {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--s2);
  padding-left: var(--s3);
  border-left: 2px solid var(--gray-200);
}
.item.references .value p:hover {
  border-left-color: var(--gold-400);
}
.item.references .value p a {
  color: var(--clr-link);
  word-break: break-all;
}

/* ── Entry details sidebar ── */
.entry_details .item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--s4);
  margin-bottom: var(--s3);
  overflow: hidden;
}
.entry_details .sub_item { margin-bottom: var(--s4); }
.entry_details .sub_item:last-child { margin-bottom: 0; }

/* Cover image */
.item.cover_image .sub_item { margin: 0; }
.item.cover_image img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  display: block;
  box-shadow: var(--shadow-sm);
}

/* Galleys in sidebar — stacked vertical */
.entry_details .item.galleys { display: block; }
.entry_details .galleys_links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.entry_details .galleys_links a.obj_galley_link {
  display: flex;
  justify-content: center;
  padding: 10px var(--s4);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
}

/* Published / Issue / Section items */
.entry_details .item.published,
.entry_details .item.issue,
.entry_details .item.doi { display: block; }
.entry_details .sub_item .value {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.5;
}
.entry_details .sub_item .value a {
  color: var(--clr-link);
  text-decoration: none;
  transition: color var(--ease);
}
.entry_details .sub_item .value a:hover { color: var(--gold-600); }

/* DOI */
.item.doi a {
  color: var(--clr-link);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  word-break: break-all;
}

/* ── Citation Widget ── */
.item.citation { overflow: visible; }
#citationOutput {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--gray-700);
  line-height: 1.65;
  padding: var(--s3);
  background: var(--gray-50);
  border-radius: var(--r-md);
  border: 1px solid var(--gray-200);
  margin-bottom: var(--s3);
}
#citationOutput .csl-entry { margin: 0; overflow-wrap: anywhere; word-break: break-word; }

.citation_formats_button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-700);
  background: transparent;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r-full);
  padding: 6px var(--s4);
  cursor: pointer;
  transition: all var(--ease);
}
.citation_formats_button:hover {
  border-color: var(--gold-400);
  color: var(--gold-600);
  background: var(--gold-50);
}
.citation_formats_list[aria-hidden="true"] { display: none; }
.citation_formats_list[aria-hidden="false"],
.citation_formats_list:not([aria-hidden]) { display: block; }
.citation_formats_list { margin-top: var(--s3); }
.citation_formats_styles {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.citation_formats_styles li a {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 3px var(--s3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: all var(--ease);
}
.citation_formats_styles li a:hover {
  background: var(--ink-800);
  color: var(--white);
  border-color: var(--ink-800);
}
.citation_formats_list .label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: var(--s2) 0 var(--s2);
  display: block;
}

/* ============================================================
   13. SIDEBAR
   ============================================================ */
.pkp_structure_sidebar {
  min-width: 0;
}

.pkp_block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s5);
  overflow: hidden;
}

.pkp_block h2 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--gray-200);
}

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

.pkp_block ul li {
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}

.pkp_block ul li:last-child {
  border-bottom: none;
}

.pkp_block ul li a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--ease);
}

.pkp_block ul li a:hover {
  color: var(--gold-600);
}

/* ============================================================
   14. ANNOUNCEMENTS
   ============================================================ */
.cmp_announcements {
  margin-bottom: var(--s8);
}

.obj_announcement_summary {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-bottom: var(--s4);
  transition: box-shadow var(--ease), border-color var(--ease);
}

.obj_announcement_summary:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.obj_announcement_summary h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--s2);
}

.obj_announcement_summary h3 a {
  color: var(--ink-800);
  text-decoration: none;
  transition: color var(--ease);
}

.obj_announcement_summary h3 a:hover {
  color: var(--gold-600);
}

.obj_announcement_summary .date {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-family: var(--font-sans);
  margin-bottom: var(--s3);
}

.obj_announcement_summary .description {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================================
   15. FORMS & INPUTS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
select,
textarea {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r-md);
  padding: 9px var(--s4);
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  -webkit-appearance: none;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink-600);
  box-shadow: 0 0 0 3px rgba(26,53,97,0.12);
}

label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--s2);
}

/* Search page */
.pkp_page_search h1 {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  color: var(--ink-800);
  margin-bottom: var(--s8);
}

.search_form .search_prompt {
  display: flex;
  gap: var(--s3);
  margin-bottom: var(--s8);
}

.search_form input[type="text"],
.search_form input[type="search"] {
  border-radius: var(--r-full);
  padding: 10px var(--s6);
  border: 2px solid var(--gray-300);
}

.search_form input[type="text"]:focus,
.search_form input[type="search"]:focus {
  border-color: var(--ink-600);
}

/* ============================================================
   16. BUTTONS
   ============================================================ */
button,
.pkp_button,
input[type="submit"],
input[type="button"],
a.pkp_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 9px var(--s6);
  background: var(--ink-800);
  color: var(--white);
  border: 2px solid var(--ink-800);
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ease);
  white-space: nowrap;
  line-height: 1.4;
}

button:hover,
.pkp_button:hover,
input[type="submit"]:hover,
a.pkp_button:hover {
  background: var(--ink-900);
  border-color: var(--ink-900);
  box-shadow: var(--shadow-md);
}

/* Primary gold button */
.pkp_button_primary {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--white);
}

.pkp_button_primary:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: var(--white);
}

/* Outlined button */
.pkp_button_offset {
  background: transparent;
  color: var(--ink-800);
}

.pkp_button_offset:hover {
  background: var(--ink-800);
  color: var(--white);
}

/* ============================================================
   17. PAGINATION
   ============================================================ */
.cmp_pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s10);
  flex-wrap: wrap;
}

.cmp_pagination a,
.cmp_pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.cmp_pagination a {
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
}

.cmp_pagination a:hover {
  border-color: var(--gold-400);
  color: var(--gold-600);
  background: var(--gold-50);
}

.cmp_pagination .current_page,
.cmp_pagination .current {
  background: var(--ink-800);
  color: var(--white);
  border: 1.5px solid var(--ink-800);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

/* Similarity articles section */
#articlesBySimilarityPages {
  margin: var(--s4) 0 var(--s2);
}
#articlesBySimilarityPages .cmp_pagination {
  margin-top: 0;
  justify-content: flex-start;
}
#articlesBySimilaritySearch {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  margin: var(--s2) 0 0;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  color: var(--gray-700);
  line-height: 1.6;
}
#articlesBySimilaritySearch a {
  color: #2563eb;
  font-weight: 600;
}

/* ============================================================
   18. NOTIFICATIONS
   ============================================================ */
.pkp_notification {
  display: flex;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-lg);
  border: 1px solid;
  margin-bottom: var(--s4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.pkp_notification.notifySuccess {
  background: var(--clr-success-bg);
  border-color: var(--clr-success-bdr);
  color: var(--clr-success);
}

.pkp_notification.notifyError {
  background: var(--clr-error-bg);
  border-color: var(--clr-error-bdr);
  color: var(--clr-error);
}

.pkp_notification.notifyInfo {
  background: var(--clr-info-bg);
  border-color: var(--clr-info-bdr);
  color: var(--clr-info);
}

.pkp_notification.notifyWarning {
  background: var(--clr-warn-bg);
  border-color: var(--clr-warn-bdr);
  color: var(--clr-warn);
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.pkp_structure_footer_wrapper {
  background: var(--ink-900);
  color: rgba(255,255,255,0.65);
  margin-top: auto;
  position: relative;
}

/* Gold accent line at top */
.pkp_structure_footer_wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-500) 30%, var(--gold-300) 70%, transparent 100%);
}

.pkp_structure_footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s16) var(--s6) var(--s8);
}

/* 4-column footer grid */
.meridian-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s10);
  margin-bottom: var(--s10);
  padding-bottom: var(--s10);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* About column */
.meridian-footer-about {
  max-width: 300px;
}

.meridian-footer-journal-name {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--s4);
  line-height: 1.2;
}

.meridian-footer-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: var(--s5);
  font-family: var(--font-sans);
}

/* ISSN badges */
.meridian-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.meridian-badge {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s1);
  padding: 4px var(--s3);
  border: 1px solid rgba(184,148,58,0.25);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-300);
  letter-spacing: 0.04em;
}

.meridian-badge-label {
  color: rgba(255,255,255,0.35);
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Open Access badge */
.meridian-oa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #86EFAC;
  letter-spacing: 0.04em;
}

.meridian-oa-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #86EFAC;
  flex-shrink: 0;
}

/* Footer nav columns */
.meridian-footer-col h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s5);
  padding-bottom: var(--s3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.meridian-footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.meridian-footer-col ul li a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  transition: color var(--ease), padding-left var(--ease);
  display: block;
  line-height: 1.4;
}

.meridian-footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

/* Custom footer content */
.pkp_footer_content {
  margin-bottom: var(--s6);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.40);
  line-height: 1.7;
}

/* Footer bottom bar */
.meridian-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
}

.meridian-footer-copyright {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.meridian-footer-copyright a {
  color: var(--gold-300);
  text-decoration: none;
  transition: color var(--ease);
}

.meridian-footer-copyright a:hover {
  color: var(--gold-400);
}

/* OJS brand logo */
.pkp_brand_footer a {
  opacity: 0.3;
  transition: opacity var(--ease);
}

.pkp_brand_footer a:hover {
  opacity: 0.55;
}

.pkp_brand_footer img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ============================================================
   20. BACK TO TOP BUTTON
   ============================================================ */
#meridian-back-top {
  position: fixed;
  bottom: var(--s8);
  right: var(--s8);
  width: 42px; height: 42px;
  background: var(--ink-800);
  color: var(--white);
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--ease-slow);
  z-index: 50;
  pointer-events: none;
}

#meridian-back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#meridian-back-top:hover {
  background: var(--gold-500);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* ============================================================
   21. PAGE CONTENT HEADINGS
   ============================================================ */
.pkp_structure_main > h1:first-child,
h1.page_title,
.page h1 {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 800;
  color: var(--ink-800);
  margin-bottom: var(--s6);
  line-height: 1.2;
  padding-bottom: var(--s5);
  position: relative;
}

.pkp_structure_main > h1:first-child::after,
h1.page_title::after,
.page_issue_archive h1::after,
.page_search h1::after,
.page_about h1::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--gold-500);
  border-radius: var(--r-full);
}

/* Active language highlight in sidebar */
.pkp_block.block_language li.current a,
.block_language li.current a {
  color: var(--gold-600);
  font-weight: 600;
}

.pkp_structure_main h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink-800);
  margin: var(--s8) 0 var(--s4);
}

.pkp_structure_main h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink-800);
  margin: var(--s6) 0 var(--s3);
}

.pkp_structure_main p,
.page_content p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.85;
  color: var(--gray-700);
  margin-bottom: var(--s4);
}

/* ============================================================
   22. TABLES
   ============================================================ */
.meridian-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-200);
  margin: var(--s4) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  background: var(--white);
}

thead th {
  background: var(--ink-800);
  color: var(--white);
  font-weight: 600;
  padding: var(--s3) var(--s4);
  text-align: left;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--ease);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

tbody td {
  padding: var(--s3) var(--s4);
  color: var(--gray-600);
}

/* ============================================================
   23. FOCUS & ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   24. SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============================================================
   25. SELECTION
   ============================================================ */
::selection {
  background: rgba(184,148,58,0.2);
  color: var(--ink-900);
}

/* ============================================================
   26. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   27. RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .meridian-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s8);
  }

  .meridian-footer-about {
    grid-column: 1 / -1;
    max-width: none;
  }

  .pkp_structure_content {
    padding: var(--s8) var(--s5);
  }

  /* Tighter nav on medium screens */
  .pkp_navigation_primary > li > a {
    padding: 0 var(--s3);
    font-size: var(--text-xs);
  }

  .pkp_navigation_user > li > a {
    padding: 0 var(--s2);
  }
}

/* ============================================================
   28. RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Content: single column */
  .pkp_structure_content,
  .pkp_structure_content.has_sidebar {
    grid-template-columns: 1fr;
    padding: var(--s6) var(--s4);
  }

  /* ── Mobile Header ── */
  .pkp_head_wrapper {
    height: auto;
    flex-wrap: wrap;
    padding: 0;
  }

  /* Logo row */
  .pkp_site_name_wrapper {
    width: 100%;
    padding: 12px var(--s4);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Show hamburger button */
  .pkp_site_nav_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
  }

  .pkp_site_name {
    order: 1;
  }

  /* Nav: hidden by default, shown when .expanded */
  .pkp_site_nav_menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--s2) 0;
    background: var(--ink-900);
  }

  .pkp_site_nav_menu.expanded {
    display: flex;
  }

  .pkp_navigation_primary_row {
    width: 100%;
    justify-content: flex-start;
  }

  .pkp_navigation_primary_wrapper {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .pkp_navigation_primary,
  .pkp_navigation_primary.pkp_nav_list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .pkp_navigation_primary > li {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .pkp_navigation_primary > li > a {
    width: 100%;
    height: auto;
    padding: 12px var(--s5);
    font-size: var(--text-sm);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .pkp_navigation_primary > li > a::after {
    display: none;
  }

  /* Mobile sub-menus: show as indented list */
  .pkp_navigation_primary > li > ul {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    background: rgba(0,0,0,0.18);
    padding: 0;
    width: 100%;
    animation: none;
  }

  .pkp_navigation_primary > li > ul > li > a {
    padding: 10px var(--s8);
    color: rgba(255,255,255,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: var(--text-xs);
  }

  .pkp_navigation_primary > li > ul > li > a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    padding-left: var(--s8);
  }

  /* Search on mobile */
  .pkp_navigation_search_wrapper {
    padding: var(--s3) var(--s5);
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .pkp_search {
    width: 100%;
    justify-content: center;
    border-radius: var(--r-md);
    padding: 10px var(--s4);
  }

  /* User nav on mobile */
  .pkp_navigation_user_wrapper {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .pkp_navigation_user,
  .pkp_navigation_user.pkp_nav_list {
    flex-direction: column;
    width: 100%;
  }

  .pkp_navigation_user > li {
    width: 100%;
  }

  .pkp_navigation_user > li > a {
    width: 100%;
    height: auto;
    padding: 12px var(--s5);
    font-size: var(--text-sm);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
  }

  /* Topbar: hide on mobile */
  .meridian-topbar { display: none; }

  /* Hero */
  .meridian-hero {
    padding: var(--s12) var(--s4);
  }

  .meridian-hero h2.meridian-hero-title {
    font-size: var(--text-3xl);
  }

  .meridian-hero p.meridian-hero-subtitle {
    font-size: var(--text-base);
  }

  /* Article detail: single column on mobile */
  .obj_article_details { padding: var(--s5) var(--s4) 0; }
  .obj_article_details .row {
    grid-template-columns: 1fr;
  }
  .obj_article_details .entry_details {
    position: static;
    order: -1;
  }

  /* Footer */
  .meridian-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .meridian-footer-about {
    max-width: none;
  }

  .meridian-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s3);
  }

  .pkp_structure_footer {
    padding: var(--s10) var(--s4) var(--s6);
  }

  /* Issues archive grid */
  ul.issues_archive {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--s4);
  }

  /* Back to top */
  #meridian-back-top {
    bottom: var(--s5);
    right: var(--s5);
  }
}

/* ============================================================
   29. RESPONSIVE — SMALL PHONES (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .meridian-hero h2.meridian-hero-title { font-size: var(--text-2xl); }

  .pkp_site_name a.is_text {
    font-size: var(--text-lg);
  }

  ul.issues_archive {
    grid-template-columns: 1fr 1fr;
  }

  .obj_article_summary {
    padding: var(--s4);
  }

  .current_issue_title {
    font-size: var(--text-2xl);
  }
}

/* ============================================================
   30. OVERFLOW & TEXT WRAPPING FIXES
   ============================================================ */

/* Prevent horizontal page scroll */
html, body { overflow-x: hidden; }

/* Flex/grid children — prevent min-width from overflowing parent */
.pkp_structure_main { min-width: 0; }
.obj_article_details .row > * { min-width: 0; }

/* Universal word-wrap for headings and long inline text */
h1, h2, h3, h4, h5, h6,
.obj_article_summary .title,
.obj_article_summary .subtitle,
.obj_article_summary .authors,
.obj_article_details h1.page_title {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Prose & abstract text */
.item.abstract .value,
.item.references .value p,
.pkp_structure_main p,
.obj_article_summary p {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* DOI / URL text — break anywhere */
.meridian-article-doi a,
.entry_details .item.doi .value a {
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ── DOI badge on article summary cards ── */
.meridian-article-doi {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--gray-100);
  overflow: hidden;
}

.meridian-doi-prefix {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white);
  background: #1D6FA8;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1.6;
  margin-top: 1px;
}

.meridian-article-doi a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--clr-link);
  text-decoration: none;
  line-height: 1.5;
  transition: color var(--ease);
}

.meridian-article-doi a:hover {
  color: var(--clr-link-hover);
  text-decoration: underline;
}

/* Table overflow: allow horizontal scroll inside main content */
.pkp_structure_main table { display: block; overflow-x: auto; max-width: 100%; }
.pkp_structure_main tbody td { word-break: break-word; }

/* ============================================================
   32. TAILWIND CLASS FALLBACKS (OJS rich-text editor embeds these)
   ============================================================ */

/* Whitespace / word-break utilities */
.whitespace-pre-wrap  { white-space: pre-wrap; }
.whitespace-normal    { white-space: normal; }
.break-words          { overflow-wrap: break-word; word-break: break-word; }
.break-all            { word-break: break-all; }

/* List utilities */
.list-disc            { list-style-type: disc; }
.list-none            { list-style: none; }

/* Padding / margin utilities */
.pl-8                 { padding-left: 2rem; }
.pl-6                 { padding-left: 1.5rem; }
.pl-4                 { padding-left: 1rem; }
.-mt-1                { margin-top: -0.25rem; }
.mt-1                 { margin-top: 0.25rem; }
.mt-2                 { margin-top: 0.5rem; }
.mt-4                 { margin-top: 1rem; }
.mb-2                 { margin-bottom: 0.5rem; }
.mb-4                 { margin-bottom: 1rem; }

/* Space-y utility: vertical gap between siblings */
.space-y-1 > * + *   { margin-top: 0.25rem; }
.space-y-2 > * + *   { margin-top: 0.5rem; }
.space-y-3 > * + *   { margin-top: 0.75rem; }
.space-y-4 > * + *   { margin-top: 1rem; }

/* About-page rich text: prose styling */
.page_about p.whitespace-pre-wrap,
.page_about p.break-words {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: var(--s4);
}

.page_about ul.list-disc,
.page_about ul.space-y-2 {
  padding-left: 1.75rem;
  margin-bottom: var(--s5);
  color: var(--gray-700);
}

.page_about ul.list-disc li,
.page_about ul.space-y-2 li {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-700);
}

/* Strong / bold inside about content */
.page_about p strong {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink-800);
}

/* ============================================================
   33. HERO TEXT CONTRAST — SPECIFICITY OVERRIDES
   ============================================================ */

/* Hard background fallback */
.meridian-hero {
  background-color: #0B1D35;
}

/* Label: specificity (0,2,0) beats any global span rule */
.meridian-hero span.meridian-hero-label {
  color: var(--gold-300) !important;
  text-shadow: none;
}

/* ============================================================
   37. PDF GALLEY VIEWER — FULL VIEWPORT LAYOUT
   ============================================================ */

/* Make the galley page fill the full viewport */
body:has(.galley_view) {
  overflow: hidden;
  height: 100dvh;
  background: #1a1a1a;
}

/* Compact sticky header bar */
.header_view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 1000;
  background: var(--ink-900, #0B1D35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s4);
  gap: var(--s3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header_view .return {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.header_view .return::before {
  content: '←';
  font-size: 1.1rem;
  font-weight: 600;
}
.header_view .return:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.header_view .title {
  flex: 1;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  padding: 0 var(--s2);
  transition: color 0.15s;
}
.header_view .title:hover {
  color: #fff !important;
}

.header_view .download {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 6px var(--s3);
  background: var(--gold-500, #B8943A);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--r-md);
  font-family: var(--font-sans, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: background 0.15s;
}
.header_view .download:hover {
  background: var(--gold-600, #A0782A);
}
.header_view .download .label {
  display: inline;
}

/* PDF canvas — fill remaining viewport below header */
.galley_view {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.galley_view iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  min-height: unset !important;
}

/* Responsive: narrower screens — smaller header, smaller download btn */
@media (max-width: 600px) {
  .header_view .title {
    font-size: 0.72rem;
  }
  .header_view .download .label {
    display: none;
  }
  .header_view .download {
    padding: 6px var(--s2);
  }
  .header_view .download::before {
    content: '↓';
    font-size: 1rem;
  }
}

/* ============================================================
   38. BREADCRUMBS — COMPACT
   ============================================================ */

nav.cmp_breadcrumbs {
  margin-top: 0;
  margin-bottom: var(--s3) !important;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--gray-100);
}

/* ============================================================
   34. SIMILAR ARTICLES & RELATED CONTENT SECTIONS
   ============================================================ */

#articlesBySimilarityList,
#articlesBySameAuthorList {
  margin-bottom: var(--s6);
}

#articlesBySimilarityList h3,
#articlesBySameAuthorList h3 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--s4);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--gray-200);
}

#articlesBySimilarityList ul,
#articlesBySameAuthorList ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

#articlesBySimilarityList li,
#articlesBySameAuthorList li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease-slow);
}

#articlesBySimilarityList li::before,
#articlesBySameAuthorList li::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold-500);
  opacity: 0;
  border-radius: 0 2px 2px 0;
  transition: opacity var(--ease);
}

#articlesBySimilarityList li:hover,
#articlesBySameAuthorList li:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

#articlesBySimilarityList li:hover::before,
#articlesBySameAuthorList li:hover::before {
  opacity: 1;
}

.meridian-sim-title a {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-800);
  text-decoration: none;
  line-height: 1.45;
  display: block;
  transition: color var(--ease);
}

.meridian-sim-title a:hover {
  color: var(--gold-600);
}

.meridian-sim-authors {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--s2);
}

.meridian-sim-issue {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: var(--s2);
  text-decoration: none;
  transition: color var(--ease);
}

.meridian-sim-issue:hover {
  color: var(--gold-600);
}

/* ============================================================
   35. MISSING ICON FALLBACK (when FontAwesome doesn't load)
   ============================================================ */

/* Search icon text fallback */
.pkp_search .fa-search::before {
  content: '🔍';
  font-style: normal;
}

/* If FA loads, the above is overridden by the real glyph */

/* ============================================================
   36. PAGE_ABOUT — FULL PROSE STYLES
   ============================================================ */

.page_about {
  max-width: 860px;
}

.page_about h1 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--s8);
  padding-bottom: var(--s4);
  border-bottom: 2px solid var(--gold-300);
}

.page_about p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: var(--s4);
}

.page_about ul {
  margin-bottom: var(--s5);
  color: var(--gray-700);
}

.page_about ul li {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
}

.page_about strong {
  color: var(--ink-800);
  font-weight: 700;
}

/* ============================================================
   31. PRINT
   ============================================================ */
@media print {
  .pkp_structure_head,
  .pkp_structure_sidebar,
  .pkp_structure_footer_wrapper,
  #meridian-back-top,
  #meridian-progress-bar,
  .meridian-topbar {
    display: none !important;
  }

  .pkp_structure_content {
    padding: 0;
    max-width: none;
    display: block;
  }

  .obj_article_details {
    border: none;
    box-shadow: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a[href^="http"]::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #555;
  }
}

/* ============================================================
   39. COMPREHENSIVE UX/UI FIXES
   ============================================================ */

/* ── 1. HERO — compact: fits 50-60% viewport, shows articles below fold ── */
.meridian-hero {
  padding: var(--s8) var(--s6) var(--s8) !important;
  min-height: auto !important;
}
.meridian-hero h2.meridian-hero-title {
  font-size: clamp(1.3rem, 3vw, 2.2rem) !important;
  margin-bottom: var(--s3) !important;
  max-width: 700px !important;
}
.meridian-hero p.meridian-hero-subtitle {
  font-size: var(--text-sm) !important;
  max-width: 560px !important;
  margin-bottom: var(--s5) !important;
  line-height: 1.6 !important;
}
.meridian-hero-label {
  font-size: 10px !important;
  margin-bottom: var(--s3) !important;
  padding: 4px var(--s3) !important;
}
.meridian-hero-btn {
  padding: 8px var(--s5) !important;
  font-size: 12px !important;
}

/* ── 2. PDF BUTTON — navy instead of red (matches design system) ── */
a.obj_galley_link.pdf,
.obj_galley_link.pdf {
  background: var(--ink-700) !important;
  border-color: transparent !important;
}
a.obj_galley_link.pdf:hover,
.obj_galley_link.pdf:hover {
  background: var(--ink-900) !important;
  box-shadow: var(--shadow-ink) !important;
}

/* ── 3. ARCHIVE — hide redundant description text ── */
.obj_issue_summary .description {
  display: none !important;
}

/* ── 4. ARCHIVE — natural aspect ratio cover images ── */
.obj_issue_summary a.cover {
  max-height: none !important;
  aspect-ratio: unset !important;
  height: auto !important;
}
.obj_issue_summary a.cover img {
  width: 100% !important;
  height: auto !important;
  object-fit: unset !important;
  object-position: unset !important;
}
ul.issues_archive {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: var(--s4) !important;
}

/* ── 5. SIDEBAR — less padding, tighter blocks ── */
.pkp_block {
  padding: var(--s4) !important;
}
.pkp_block h2 {
  margin-bottom: var(--s3) !important;
  padding-bottom: var(--s2) !important;
  font-size: 10px !important;
}
.pkp_block ul li {
  padding: 5px 0 !important;
  font-size: var(--text-xs) !important;
}

/* ── 6. HEADING UNDERLINE — thinner, more refined ── */
.pkp_structure_main > h1:first-child::after,
h1.page_title::after,
.page_issue_archive h1::after,
.page_search h1::after,
.page_about h1::after {
  width: 32px !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300)) !important;
}
.pkp_structure_main > h1:first-child,
h1.page_title,
.page h1 {
  padding-bottom: var(--s4) !important;
  margin-bottom: var(--s5) !important;
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl)) !important;
}

/* ── 7. LOGIN / REGISTER — styled card ── */
.page_login,
.page_register,
.page_lost_password {
  max-width: 460px;
  margin: 0 auto var(--s12);
}

.page_login .cmp_form,
.page_register .cmp_form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s8) var(--s6);
  box-shadow: var(--shadow-md);
}

.page_login fieldset.fields,
.page_register fieldset.fields {
  border: none;
  padding: 0;
  margin: 0;
}
.page_login fieldset.fields > legend,
.page_register fieldset.fields > legend {
  display: none;
}

.page_login .fields > div,
.page_register .fields > div {
  margin-bottom: var(--s5);
}

.page_login .cmp_form label,
.page_register .cmp_form label {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.page_login .cmp_form .label,
.page_register .cmp_form .label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}
.page_login .cmp_form input[type="text"],
.page_login .cmp_form input[type="password"],
.page_register .cmp_form input[type="text"],
.page_register .cmp_form input[type="password"],
.page_register .cmp_form input[type="email"] {
  width: 100%;
  padding: 10px var(--s4);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.page_login .cmp_form input:focus,
.page_register .cmp_form input:focus {
  border-color: var(--ink-600);
  box-shadow: 0 0 0 3px rgba(35,72,128,0.10);
}
.page_login .cmp_form a,
.page_register .cmp_form a {
  font-size: var(--text-sm);
  color: var(--clr-link);
  margin-top: var(--s1);
  display: inline-block;
}

.page_login .buttons,
.page_register .buttons {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s6);
  flex-wrap: wrap;
}
.page_login .buttons button.submit,
.page_register .buttons button.submit {
  background: var(--ink-800);
  color: #fff;
  border: 2px solid var(--ink-800);
  border-radius: var(--r-full);
  padding: 10px var(--s8);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--ease);
}
.page_login .buttons button.submit:hover,
.page_register .buttons button.submit:hover {
  background: var(--ink-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-ink);
}
.page_login .buttons a.register,
.page_register .buttons a {
  font-size: var(--text-sm);
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--ease);
}
.page_login .buttons a.register:hover,
.page_register .buttons a:hover {
  color: var(--gold-600);
}
.page_login .remember label,
.page_register .remember label {
  flex-direction: row;
  align-items: center;
  gap: var(--s2);
  cursor: pointer;
}

/* ── 8. SEARCH FORM — complete styling ── */
.page_search .cmp_form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--s6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--s8);
}

.search_input {
  display: flex;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.search_input input.query,
.search_input input[type="text"] {
  flex: 1;
  padding: 10px var(--s5);
  border: 2px solid var(--gray-200);
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--gray-900);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.search_input input:focus {
  border-color: var(--ink-600);
  box-shadow: 0 0 0 3px rgba(35,72,128,0.10);
}

.search_advanced {
  border: none;
  padding: 0;
  margin: 0;
}
.search_advanced > legend {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s4);
  display: block;
}

.date_range {
  display: flex;
  gap: var(--s4);
  margin-bottom: var(--s5);
  flex-wrap: wrap;
}
.date_range .from,
.date_range .to {
  flex: 1;
  min-width: 200px;
}
.date_range fieldset {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
}
.date_range fieldset > legend {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 var(--s2);
}
.date_range label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-family: var(--font-sans);
  margin-right: var(--s1);
}
.date_range select {
  padding: 4px var(--s3);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gray-700);
  background: var(--white);
  margin-right: var(--s2);
  margin-top: 2px;
}
.page_search .author {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.page_search .author .label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}
.page_search .author input[type="text"] {
  padding: 8px var(--s4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--ease);
  max-width: 360px;
}
.page_search .author input:focus {
  border-color: var(--ink-600);
}
.page_search .submit {
  margin-top: var(--s5);
}

/* ── 9. MOBILE NAV — slide-down animation ── */
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .pkp_site_nav_menu.expanded {
    animation: navSlideDown 0.22s cubic-bezier(0.25,0.46,0.45,0.94);
  }
}

/* ── 10. MOBILE SEARCH — date fields stack vertically ── */
@media (max-width: 640px) {
  .date_range {
    flex-direction: column;
    gap: var(--s3);
  }
  .date_range .from,
  .date_range .to {
    min-width: unset;
    width: 100%;
  }
  .date_range select {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--s2);
    padding: 6px var(--s3);
  }
  .date_range label {
    display: block;
    margin-top: var(--s2);
  }
  .search_input {
    flex-direction: column;
  }
  .search_input input {
    width: 100%;
  }
}

/* ── 11. NAV HOVER — richer feedback ── */
.pkp_navigation_primary > li > a {
  border-radius: var(--r-sm);
}
.pkp_navigation_primary > li:hover > a {
  background: rgba(255,255,255,0.10) !important;
}

/* ── 12. MAKE SUBMISSION BUTTON ── */
.block_make_submission_link {
  display: block;
  text-align: center;
  padding: 10px var(--s5) !important;
  background: var(--ink-700);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-radius: var(--r-full);
  text-decoration: none !important;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 2px 8px rgba(35,72,128,0.18);
}
.block_make_submission_link:hover {
  background: var(--ink-900);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(35,72,128,0.28);
}

/* ============================================================
   40. ARTICLE PAGE — PRECISION FIXES
   ============================================================ */

/* ── Title underline: full-width gradient, proportional ── */
.obj_article_details h1.page_title {
  font-size: clamp(1.2rem, 2.6vw, 1.85rem) !important;
  padding-bottom: var(--s5) !important;
  border-bottom: none !important;
  margin-bottom: var(--s6) !important;
  font-weight: 700 !important;
}
.obj_article_details h1.page_title::after {
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(90deg,
    var(--gold-500) 0%,
    var(--gold-300) 25%,
    rgba(184,148,58,0.04) 100%) !important;
  border-radius: 0 !important;
}

/* ── Topbar: slim, perfectly aligned ── */
.meridian-topbar {
  height: 32px !important;
  min-height: 32px !important;
}
.meridian-topbar-inner {
  height: 32px !important;
  padding: 0 var(--s5) !important;
}
.meridian-topbar-left,
.meridian-topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: var(--s3) !important;
  font-size: 11px !important;
  line-height: 1 !important;
}
.meridian-topbar-right {
  font-size: 11px !important;
  color: rgba(255,255,255,0.4) !important;
}
.meridian-sep {
  color: rgba(255,255,255,0.2) !important;
}

/* ── Search button: borderless, consistent with nav items ── */
a.pkp_search.pkp_search_desktop {
  border: none !important;
  border-radius: var(--r-md) !important;
  padding: 6px 10px !important;
  color: rgba(255,255,255,0.75) !important;
  gap: 6px !important;
  font-size: var(--text-sm) !important;
}
a.pkp_search.pkp_search_desktop:hover {
  background: rgba(255,255,255,0.10) !important;
  color: var(--white) !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Authors: professional card per author ── */
.item.authors {
  background: var(--white) !important;
  border: 1px solid var(--gray-200) !important;
  border-top: 3px solid var(--ink-700) !important;
  border-left: none !important;
  padding: var(--s4) var(--s5) !important;
  border-radius: var(--r-lg) !important;
}
.item.authors ul.authors {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--s3) !important;
}
.item.authors ul.authors li {
  display: block !important;
  padding: var(--s3) var(--s4) !important;
  background: var(--gray-50) !important;
  border-radius: var(--r-md) !important;
  border-left: 3px solid var(--ink-100) !important;
  transition: border-color var(--ease), background var(--ease) !important;
}
.item.authors ul.authors li:hover {
  border-left-color: var(--gold-400) !important;
  background: var(--gold-50) !important;
}
.item.authors .name {
  display: block !important;
  font-family: var(--font-sans) !important;
  font-size: var(--text-base) !important;
  font-weight: 700 !important;
  color: var(--ink-800) !important;
  margin-bottom: 3px !important;
}
.item.authors .affiliation {
  display: block !important;
  font-size: var(--text-xs) !important;
  color: var(--gray-500) !important;
  line-height: 1.45 !important;
  margin-bottom: 4px !important;
  padding-left: var(--s4) !important;
  position: relative !important;
}
.item.authors .affiliation::before {
  content: '·';
  position: absolute;
  left: var(--s2);
  color: var(--gold-400);
  font-weight: 700;
}
.item.authors .userGroup {
  display: inline-block !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--white) !important;
  background: var(--gray-400) !important;
  padding: 1px 6px !important;
  border-radius: var(--r-full) !important;
  vertical-align: middle !important;
}

/* ── Abstract: breathable left padding, stronger border ── */
.item.abstract {
  border-left: 4px solid var(--gold-400) !important;
  padding: var(--s5) var(--s6) var(--s5) var(--s8) !important;
  background: var(--gold-50) !important;
}
.item.abstract h2.label {
  font-family: var(--font-sans) !important;
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: var(--gold-600) !important;
  margin-bottom: var(--s3) !important;
}
.item.abstract p,
.abstract p {
  color: var(--gray-800) !important;
  line-height: 1.9 !important;
}

/* ── Keywords: styled accent block ── */
.item.keywords {
  background: var(--ink-50) !important;
  border-left: 4px solid var(--ink-600) !important;
  border-radius: 0 var(--r-md) var(--r-md) 0 !important;
  padding: var(--s4) var(--s5) var(--s4) var(--s6) !important;
  margin-bottom: var(--s5) !important;
}
.item.keywords h2.label {
  font-family: var(--font-sans) !important;
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: var(--ink-700) !important;
  margin-bottom: var(--s2) !important;
}
.item.keywords .value {
  font-family: var(--font-sans) !important;
  font-size: var(--text-sm) !important;
  color: var(--gray-700) !important;
  line-height: 1.7 !important;
  font-style: italic !important;
}

/* ── Sidebar cover image: constrained, centered ── */
.item.cover_image {
  overflow: hidden !important;
  text-align: center !important;
}
.item.cover_image .sub_item {
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
}
.item.cover_image img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 180px !important;
  object-fit: contain !important;
  border-radius: var(--r-md) !important;
}

/* ── Downloads chart: themed container ── */
.item.downloads_chart {
  background: var(--white) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--r-lg) !important;
}
.item.downloads_chart h2.label {
  font-family: var(--font-sans) !important;
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: var(--gray-400) !important;
  margin-bottom: var(--s4) !important;
}
.usageStatsGraph {
  max-height: 180px !important;
}
.usageStatsUnavailable {
  font-family: var(--font-sans) !important;
  font-size: var(--text-sm) !important;
  color: var(--gray-400) !important;
  text-align: center !important;
  padding: var(--s6) 0 !important;
}

/* ── References: overflow-safe URLs ── */
.item.references .value p {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.item.references .value p a {
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
  display: inline !important;
}

/* ── Similar articles: card overrides for high-specificity contexts ── */
#articlesBySimilarityList li,
#articlesBySameAuthorList li {
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--gray-200) !important;
  border-left: 1px solid var(--gray-200) !important;
  background: var(--white) !important;
}

/* ── Section labels (.label h2) uniform style ── */
.obj_article_details .item > h2.label {
  font-family: var(--font-sans) !important;
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: var(--gray-400) !important;
  margin-bottom: var(--s3) !important;
}

/* ── Color system normalisation ── */
/* All links in main content use one blue */
.obj_article_details .pkp_structure_main a:not([class]) {
  color: var(--clr-link) !important;
}
.obj_article_details .pkp_structure_main a:not([class]):hover {
  color: var(--clr-link-hover) !important;
}

/* ============================================================
   42. REGISTER PAGE — full redesign
   ============================================================ */

/* Wider card for multi-field form */
.page_register {
  max-width: 700px !important;
}

/* Reset all fieldsets */
.page_register fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 var(--s6) !important;
}

/* Section headers: Profile / Login legends */
.page_register fieldset.identity > legend,
.page_register fieldset.login > legend {
  display: block !important;
  width: 100%;
  font-family: var(--font-sans) !important;
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: var(--gold-600) !important;
  padding-bottom: var(--s3) !important;
  margin-bottom: var(--s5) !important;
  border-bottom: 1px solid var(--gray-200) !important;
}

/* Two-column grid: identity fields */
.page_register fieldset.identity .fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: var(--s5) !important;
  row-gap: var(--s4) !important;
}
.page_register fieldset.identity .affiliation,
.page_register fieldset.identity .country {
  grid-column: 1 / -1 !important;
}

/* Two-column grid: login fields */
.page_register fieldset.login .fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: var(--s5) !important;
  row-gap: var(--s4) !important;
}

/* Override margin-bottom that conflicts with grid gap */
.page_register fieldset.identity .fields > div,
.page_register fieldset.login .fields > div {
  margin-bottom: 0 !important;
}

/* Country select — same look as text inputs */
.page_register .cmp_form select {
  width: 100% !important;
  padding: 10px 36px 10px var(--s4) !important;
  border: 1.5px solid var(--gray-300) !important;
  border-radius: var(--r-md) !important;
  font-family: var(--font-sans) !important;
  font-size: var(--text-base) !important;
  color: var(--gray-900) !important;
  background-color: var(--white) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
  transition: border-color var(--ease), box-shadow var(--ease) !important;
  box-sizing: border-box !important;
}
.page_register .cmp_form select:focus {
  border-color: var(--ink-600) !important;
  box-shadow: 0 0 0 3px rgba(35,72,128,0.10) !important;
}

/* Consent box — light gray card */
.page_register fieldset.consent {
  background: var(--gray-50) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--r-lg) !important;
  padding: var(--s4) var(--s5) !important;
}
.page_register fieldset.consent .fields {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--s3) !important;
}
.page_register fieldset.consent .fields > div {
  margin-bottom: 0 !important;
}

/* Reviewer box — ink-tinted card */
.page_register fieldset.reviewer {
  background: var(--ink-50) !important;
  border: 1px solid var(--ink-100) !important;
  border-radius: var(--r-lg) !important;
  padding: var(--s4) var(--s5) !important;
}
.page_register fieldset.reviewer .fields > div {
  margin-bottom: 0 !important;
}
.page_register .reviewer_interests {
  margin-top: var(--s4) !important;
}

/* Checkbox rows — inline with text */
.page_register .optin label {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: var(--s3) !important;
  cursor: pointer !important;
  font-family: var(--font-sans) !important;
  font-size: var(--text-sm) !important;
  color: var(--gray-700) !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
}
.page_register .optin input[type="checkbox"] {
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
  margin-top: 2px !important;
  accent-color: var(--ink-700) !important;
  cursor: pointer !important;
}
.page_register .optin a {
  color: var(--clr-link) !important;
  font-weight: 600 !important;
  font-size: inherit !important;
  display: inline !important;
  margin-top: 0 !important;
}

/* Register button — full width on narrow screens */
.page_register .buttons {
  flex-wrap: wrap !important;
}
.page_register .buttons button.submit {
  flex: 1 !important;
  min-width: 140px !important;
  justify-content: center !important;
}

/* Mobile: collapse grids to single column */
@media (max-width: 560px) {
  .page_register fieldset.identity .fields,
  .page_register fieldset.login .fields {
    grid-template-columns: 1fr !important;
  }
  .page_register fieldset.identity .affiliation,
  .page_register fieldset.identity .country {
    grid-column: 1 !important;
  }
}

/* ============================================================
   43. AI CHATBOT WIDGET
   ============================================================ */

/* ── Floating bubble ── */
#mc-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ink-700) 0%, #1e4d8c 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(37,99,235,0.42), 0 1px 6px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  transition: transform 0.28s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s, background 0.2s;
  padding: 0;
}

/* Pulse ring */
#mc-bubble::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37,99,235,0.40);
  animation: mc-ring 2.6s ease-out infinite;
  pointer-events: none;
}
#mc-bubble.mc-active::before { animation: none; opacity: 0; }

@keyframes mc-ring {
  0%   { transform: scale(1); opacity: 0.85; }
  70%  { transform: scale(1.38); opacity: 0; }
  100% { transform: scale(1.38); opacity: 0; }
}

/* Tooltip */
#mc-bubble::after {
  content: 'AI Yordamchi';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,23,42,0.88);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s 0.4s;
}
#mc-bubble:hover::after   { opacity: 1; }
#mc-bubble.mc-active::after { display: none; }

#mc-bubble:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.52), 0 2px 8px rgba(0,0,0,0.16);
}
#mc-bubble.mc-active { transform: scale(1.04); }

/* Show/hide icons */
#mc-bubble .mc-icon-chat  { display: flex; align-items: center; justify-content: center; }
#mc-bubble .mc-icon-close { display: none; font-size: 22px; font-weight: 700; line-height: 1; color: #fff; }
#mc-bubble.mc-active .mc-icon-chat  { display: none; }
#mc-bubble.mc-active .mc-icon-close { display: flex; align-items: center; justify-content: center; }

/* ── Chat panel ── */
#mc-panel {
  position: fixed;
  bottom: 104px;
  right: 28px;
  width: 400px;
  height: 560px;
  max-height: calc(100vh - 124px);
  background: #f0f4f8;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.17), 0 4px 16px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  z-index: 9991;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.90) translateY(20px);
  transform-origin: bottom right;
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(.34,1.56,.64,1);
}
#mc-panel.mc-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* ── Header ── */
.mc-head {
  background: linear-gradient(135deg, #1a3461 0%, #2457b8 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.mc-head::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.mc-head-info { display: flex; align-items: center; gap: 12px; }

.mc-head-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.28);
  position: relative;
}
.mc-head-avatar::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #1a3461;
}

.mc-head-title {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.mc-head-sub {
  color: rgba(255,255,255,0.70);
  font-family: var(--font-sans);
  font-size: 11.5px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mc-head-sub::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
}

.mc-btn-close {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.mc-btn-close:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.1);
}

/* ── Messages area ── */
.mc-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f0f4f8;
  scroll-behavior: smooth;
}
.mc-msgs::-webkit-scrollbar { width: 5px; }
.mc-msgs::-webkit-scrollbar-track { background: transparent; }
.mc-msgs::-webkit-scrollbar-thumb { background: #c0cad8; border-radius: 3px; }
.mc-msgs::-webkit-scrollbar-thumb:hover { background: #9aaabb; }

/* ── Message bubbles ── */
.mc-msg { display: flex; align-items: flex-end; gap: 8px; }
.mc-msg-user { justify-content: flex-end; }
.mc-msg-ai   { justify-content: flex-start; }

/* Small AI avatar dot beside each AI message */
.mc-msg-ai::before {
  content: '✦';
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3461, #2457b8);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 2px;
}

.mc-bub {
  max-width: 80%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.62;
  word-break: break-word;
}
.mc-msg-user .mc-bub {
  background: linear-gradient(135deg, #2457b8, #1a3a8f);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 2px 12px rgba(37,99,235,0.28);
}
.mc-msg-ai .mc-bub {
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 4px 18px 18px 18px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* Links inside AI messages */
.mc-msg-ai .mc-bub a {
  color: #2457b8;
  text-decoration: none;
  border-bottom: 1px solid rgba(36,87,184,0.30);
  word-break: break-all;
  font-size: 13px;
  transition: color 0.15s, border-color 0.15s;
}
.mc-msg-ai .mc-bub a:hover {
  color: #1a3a8f;
  border-color: #1a3a8f;
}

/* Lists inside AI messages */
.mc-list {
  margin: 6px 0 4px;
  padding-left: 16px;
}
.mc-list li { margin-bottom: 6px; line-height: 1.55; }

/* ── Suggestion chips ── */
.mc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 0 2px;
}
.mc-chip {
  background: #fff;
  border: 1.5px solid #bfcfe8;
  color: #2457b8;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  line-height: 1;
}
.mc-chip:hover {
  background: #2457b8;
  border-color: #2457b8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36,87,184,0.30);
}

/* ── Typing indicator ── */
.mc-typing {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 12px 16px !important;
}
.mc-typing span {
  width: 7px; height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  display: inline-block;
  animation: mc-pulse 1.4s ease-in-out infinite;
}
.mc-typing span:nth-child(2) { animation-delay: 0.18s; }
.mc-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes mc-pulse {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30%          { transform: translateY(-6px); opacity: 1; }
}

/* ── Input area ── */
.mc-foot {
  padding: 12px 14px 10px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.mc-foot-row {
  display: contents;
}
.mc-inp {
  flex: 1;
  border: 1.5px solid #dce4ee;
  border-radius: 24px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  background: #f5f7fb;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  color: #1e293b;
}
.mc-inp:focus {
  border-color: #2457b8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36,87,184,0.11);
}
.mc-inp::placeholder { color: #94a3b8; }

.mc-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2457b8, #1a3a8f);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s, background 0.2s;
  box-shadow: 0 2px 10px rgba(36,87,184,0.34);
  position: relative;
  overflow: visible;
}
/* Telegram-style paper-plane icon via CSS background (immune to SVG CSS conflicts) */
.mc-send::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21l21-9L2 3v7l15 2-15 2v7z' fill='%23ffffff'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mc-send:disabled::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21l21-9L2 3v7l15 2-15 2v7z' fill='%2394a3b8'/%3E%3C/svg%3E");
}
.mc-send:hover {
  transform: scale(1.12) translateY(-1px);
  box-shadow: 0 5px 18px rgba(36,87,184,0.44);
}
.mc-send:active { transform: scale(0.95); }
.mc-send:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}


/* ── Mobile ── */
@media (max-width: 480px) {
  #mc-panel {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 88px;
    height: 73vh;
    max-height: 580px;
    border-radius: 18px;
  }
  #mc-bubble {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
  #mc-bubble::after { display: none; }
  .mc-bub { max-width: 86%; }
}


/* ============================================================
   44. PREMIUM ABOUT & EDITORIAL TEAM PAGES  (.sirsh-*)
   ============================================================ */

/* ── Page containers ── */
.sirsh-about-page,
.sirsh-team-page {
  max-width: 100%;
  font-family: var(--font-sans);
  color: var(--gray-800);
}

/* ── Hero banner ── */
.sirsh-hero {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 55%, #1e3a8a 100%);
  border-radius: 16px;
  padding: 48px 44px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.sirsh-hero::after {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.sirsh-hero-eyebrow {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 12px;
}
.sirsh-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 22px 0;
}
.sirsh-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sirsh-hbadge {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1.5px solid rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.08);
}
.sirsh-hbadge-gold {
  border-color: var(--gold-400);
  color: var(--gold-300);
  background: rgba(184,148,58,0.14);
}

/* ── Stats row ── */
.sirsh-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}
.sirsh-stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--ink-700);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.sirsh-stat-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1;
  margin-bottom: 6px;
}
.sirsh-stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ── Section structure ── */
.sirsh-section {
  margin-bottom: 44px;
}
.sirsh-section-h {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-300);
  display: inline-block;
}
.sirsh-lead-para {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--gray-700);
  margin: 0 0 14px 0;
}
.sirsh-body-para {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin: 0 0 10px 0;
}

/* ── Subject cards ── */
.sirsh-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.sirsh-subject-card {
  background: var(--ink-50);
  border-left: 4px solid var(--ink-700);
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.sirsh-subject-card:nth-child(1) { border-left-color: #1a3561; }
.sirsh-subject-card:nth-child(2) { border-left-color: #1a5261; }
.sirsh-subject-card:nth-child(3) { border-left-color: #2d3a8c; }
.sirsh-subject-card:nth-child(4) { border-left-color: #7b2d2d; }
.sirsh-subject-card:nth-child(5) { border-left-color: #1a5e35; }
.sirsh-subject-card:nth-child(6) { border-left-color: #4a2d7b; }
.sirsh-subject-card:nth-child(7) { border-left-color: #7b5a1a; }
.sirsh-subject-card:nth-child(8) { border-left-color: #2d4a5e; }
.sirsh-subject-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.sirsh-subj-code {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 5px;
}
.sirsh-subj-name {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.35;
}

/* ── Publication details grid ── */
.sirsh-pubinfo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.sirsh-pubinfo-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}
.sirsh-pubinfo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
  margin-top: 7px;
}
.sirsh-pubinfo-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 3px;
}
.sirsh-pubinfo-val {
  font-size: 0.89rem;
  color: var(--gray-800);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Indexing badges ── */
.sirsh-index-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.sirsh-index-badge {
  padding: 8px 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── CTA box ── */
.sirsh-cta-box {
  background: linear-gradient(135deg, var(--gold-100) 0%, #fff8e6 100%);
  border: 1.5px solid var(--gold-300);
  border-radius: 14px;
  padding: 38px 40px;
  text-align: center;
  margin-top: 8px;
}
.sirsh-cta-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 10px 0;
}
.sirsh-cta-text {
  font-size: 0.94rem;
  color: var(--gray-600);
  margin: 0 0 26px 0;
  line-height: 1.65;
}
.sirsh-cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sirsh-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.sirsh-btn-primary {
  background: var(--ink-900);
  color: white;
  border: 2px solid var(--ink-900);
}
.sirsh-btn-primary:hover {
  background: var(--ink-700);
  border-color: var(--ink-700);
  color: white;
  text-decoration: none;
}
.sirsh-btn-secondary {
  background: transparent;
  color: var(--ink-900);
  border: 2px solid var(--ink-900);
}
.sirsh-btn-secondary:hover {
  background: var(--ink-900);
  color: white;
  text-decoration: none;
}

/* ── Editorial team hero ── */
.sirsh-team-hero {
  background: linear-gradient(135deg, var(--ink-900) 0%, #1e3a8a 50%, var(--ink-700) 100%);
  border-radius: 16px;
  padding: 44px;
  margin-bottom: 40px;
  color: white;
  position: relative;
  overflow: hidden;
}
.sirsh-team-hero::before {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.sirsh-team-eyebrow {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 12px;
}
.sirsh-team-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: white;
  margin: 0 0 10px 0;
}
.sirsh-team-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.6;
}

/* ── Leader cards ── */
.sirsh-leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}
.sirsh-leader-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  border: 1px solid var(--gray-200);
}
.sirsh-leader-top {
  background: linear-gradient(135deg, var(--ink-900) 0%, #1e3a8a 100%);
  padding: 24px 24px 22px;
}
.sirsh-leader-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  border: 2px solid rgba(255,255,255,0.2);
}
.sirsh-leader-role {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 5px;
}
.sirsh-leader-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin: 0;
}
.sirsh-leader-body {
  padding: 18px 24px 20px;
}
.sirsh-leader-degree {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ── Discipline blocks ── */
.sirsh-disc-block {
  margin-bottom: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sirsh-disc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--gray-200);
}
.sirsh-disc-code {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--ink-900);
  color: white;
  flex-shrink: 0;
}
.sirsh-disc-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--ink-900);
}
.sirsh-disc-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  padding: 16px 20px;
}
.sirsh-mcard {
  padding: 9px 13px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.sirsh-mcard:hover {
  background: var(--ink-50);
  border-color: #c8d8ec;
}
.sirsh-mname {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.35;
}
.sirsh-mpos {
  font-size: 0.72rem;
  color: var(--gray-500);
  line-height: 1.3;
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sirsh-hero,
  .sirsh-team-hero { padding: 32px 24px; border-radius: 12px; }
  .sirsh-stats-row { grid-template-columns: repeat(2, 1fr); }
  .sirsh-subject-grid { grid-template-columns: repeat(2, 1fr); }
  .sirsh-pubinfo-grid { grid-template-columns: 1fr; }
  .sirsh-cta-box { padding: 28px 22px; }
  .sirsh-team-hero { padding: 30px 24px; }
}
@media (max-width: 480px) {
  .sirsh-stats-row { gap: 10px; }
  .sirsh-stat-num { font-size: 1.55rem; }
  .sirsh-leaders-grid { grid-template-columns: 1fr; }
  .sirsh-hero .sirsh-hero-title,
  .sirsh-team-hero .sirsh-team-title { font-size: 1.3rem; }
  .sirsh-cta-btns { flex-direction: column; align-items: center; }
}

/* ── Colour-lock: OJS default theme applies heading/text colours via
   element+class selectors (.pkp_page_content h1, etc.) which beat a single
   class selector.  Two-class compound selectors (0,2,0) reliably win.    ── */
.sirsh-hero .sirsh-hero-eyebrow   { color: var(--gold-300)           !important; }
.sirsh-hero .sirsh-hero-title     { color: #ffffff                    !important; }
.sirsh-hero .sirsh-hbadge         { color: rgba(255,255,255,0.88)     !important; }
.sirsh-hero .sirsh-hbadge-gold    { color: var(--gold-300)            !important; }

.sirsh-team-hero .sirsh-team-eyebrow { color: var(--gold-300)         !important; }
.sirsh-team-hero .sirsh-team-title   { color: #ffffff                  !important; }
.sirsh-team-hero .sirsh-team-sub     { color: rgba(255,255,255,0.72)   !important; }

.sirsh-leader-top .sirsh-leader-role   { color: var(--gold-300)        !important; }
.sirsh-leader-top .sirsh-leader-name   { color: #ffffff                !important; }
.sirsh-leader-top .sirsh-leader-avatar { color: #ffffff                !important; }
.sirsh-leader-body .sirsh-leader-degree { color: var(--gray-600)       !important; }

.sirsh-about-page .sirsh-section-h,
.sirsh-team-page  .sirsh-section-h    { color: var(--ink-900)          !important; }

.sirsh-about-page .sirsh-lead-para    { color: var(--gray-700)         !important; }
.sirsh-about-page .sirsh-body-para,
.sirsh-team-page  .sirsh-body-para    { color: var(--gray-600)         !important; }

.sirsh-stat-card .sirsh-stat-num      { color: var(--ink-900)          !important; }
.sirsh-stat-card .sirsh-stat-lbl      { color: var(--gray-500)         !important; }

.sirsh-subject-card .sirsh-subj-code  { color: var(--gray-400)         !important; }
.sirsh-subject-card .sirsh-subj-name  { color: var(--gray-800)         !important; }

.sirsh-pubinfo-item .sirsh-pubinfo-label { color: var(--gray-500)      !important; }
.sirsh-pubinfo-item .sirsh-pubinfo-val   { color: var(--gray-800)      !important; }

.sirsh-disc-header .sirsh-disc-code   { color: #ffffff                 !important; }
.sirsh-disc-header .sirsh-disc-name   { color: var(--ink-900)          !important; }
.sirsh-disc-members .sirsh-mname      { color: var(--gray-800)         !important; }
.sirsh-disc-members .sirsh-mpos       { color: var(--gray-500)         !important; }

.sirsh-index-badge                    { color: var(--gray-700)         !important; }
.sirsh-cta-box .sirsh-cta-title       { color: var(--ink-900)          !important; }
.sirsh-cta-box .sirsh-cta-text        { color: var(--gray-600)         !important; }


/* ============================================================
   45. ARTICLE CARD — VIEW COUNT BADGE  (.meridian-view-count)
   ============================================================ */

.meridian-view-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 3px 9px 3px 7px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-500);
  line-height: 1;
  vertical-align: middle;
}

.meridian-view-count svg {
  flex-shrink: 0;
  color: var(--gray-400);
}

.meridian-view-count .mvc-num {
  color: var(--gray-700);
  font-weight: 600;
}
