/* ==========================================================================
   custom.css — Jurnal Farmasi Higea | STIFARM Padang
   REDESIGN v2 2026 — Ultra-Modern Elegant Academic Journal Interface
   Hijau Lumut & Kuning Emas — High-Contrast Typography
   ========================================================================== */

:root {
  --green-950: #001a13;
  --green-900: #003627;
  --green-800: #004b36;
  --green-700: #005842; /* STIFARM Padang Moss Green */
  --green-600: #006b50;
  --green-500: #008060;
  --green-400: #1ba17d;
  --green-300: #54c9a7;
  --green-200: #9be5ce;
  --green-100: #d2f6ec;
  --green-50: #f0fbf8;

  --gold-800: #7b621c;
  --gold-700: #9e7f22;
  --gold-600: #c5a02b; /* STIFARM Padang Golden Yellow */
  --gold-500: #dfb737;
  --gold-400: #ffd043;
  --gold-300: #ffe082;
  --gold-200: #ffecb3;
  --gold-100: #fff8e1;
  --gold-50: #fffdf7;

  --slate-950: #0a0e1a;
  --slate-900: #0f1420;
  --slate-800: #1e2435;
  --slate-700: #3a4154;
  --slate-600: #5c6377;
  --slate-500: #7f8698;
  --slate-400: #a3a9b8;
  --slate-300: #c7cbd6;
  --slate-200: #e1e3ea;
  --slate-100: #f0f1f4;
  --slate-50: #f8f9fa;
  --white: #ffffff;

  --color-primary: var(--green-700);
  --color-primary-dark: var(--green-800);
  --color-primary-darker: var(--green-900);
  --color-primary-deeper: var(--green-950);
  --color-primary-light: var(--green-600);
  --color-primary-bg: var(--green-50);
  --color-primary-border: var(--green-200);

  --color-accent: var(--gold-600);
  --color-accent-dark: var(--gold-700);
  --color-accent-deeper: var(--gold-800);
  --color-accent-light: var(--gold-500);
  --color-accent-bg: var(--gold-50);
  --color-accent-border: var(--gold-300);

  --color-text: var(--slate-800);
  --color-text-heading: var(--slate-900);
  --color-text-secondary: var(--slate-600);
  --color-text-muted: var(--slate-400);
  --color-bg: var(--white);
  --color-bg-alt: var(--slate-50);
  --color-bg-card: var(--white);
  --color-border: var(--slate-200);
  --color-border-light: var(--slate-100);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.06);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(0,88,66,0.08);
  --shadow-gold: 0 0 30px rgba(197,160,43,0.12);

  --max-width: 1200px;
  --header-height: 68px;
  --topbar-height: 34px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition: all 0.3s var(--ease-out);
  --transition-fast: all 0.18s var(--ease-out);
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover { color: var(--color-primary-dark); }

::selection { background: var(--green-300); color: var(--white); }

#container {
  width: 100%; max-width: 100%; min-width: 0 !important;
  margin: 0; background: var(--color-bg);
}

#pkp-common-openJournalSystems #container { background: transparent; }

/* ==========================================================================
   TOPBAR — Slim Institutional Bar
   ========================================================================== */
.header-topbar {
  background: linear-gradient(135deg, var(--green-950), var(--green-900));
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 101;
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar-info { font-weight: 500; opacity: 0.85; }
.topbar-info strong { color: var(--gold-400); font-weight: 700; letter-spacing: 0.08em; }
.topbar-issn { opacity: 0.45; font-size: 0.68rem; font-family: monospace; }

/* ==========================================================================
   HEADER — Glassmorphism Sticky Navigation
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; }

.header-main {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

.header-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--green-700) 0%,
    var(--gold-500) 25%,
    var(--green-600) 50%,
    var(--gold-600) 75%,
    var(--green-700) 100%
  );
  background-size: 200% 100%;
  animation: shimmerBar 8s linear infinite;
}

@keyframes shimmerBar {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-logo { display: flex; align-items: center; }
.header-logo img {
  max-height: 48px;
  width: auto;
  border-radius: 4px;
}

.header-title { display: flex; flex-direction: column; gap: 1px; }
.header-title a, .header-title-link {
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.header-title img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.header-title-main {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-950);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.header-title-sub {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   HAMBURGER / NAV TOGGLE
   ========================================================================== */
.nav-toggle {
  display: none;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 102;
  position: relative;
}

.nav-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--green-950);
  border-radius: 2px;
  left: 0;
  transition: var(--transition);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 8px; }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 8px; }

/* ==========================================================================
   NAVIGATION — Clean Minimal Menu
   ========================================================================== */
#navbar {
  display: flex;
  align-items: center;
  margin-left: auto;
  border: none !important;
  margin: 0 !important;
  margin-left: auto !important;
  padding: 0 !important;
}

#navbar .menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#navbar .menu li { position: relative; margin: 0; padding: 0; }

#navbar .menu a {
  display: flex;
  align-items: center;
  padding: 10px 16px !important;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-700);
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

#navbar .menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px !important;
  right: 16px !important;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
  transform-origin: center;
  display: block !important;
  width: auto !important;
}

#navbar .menu a:hover::after { transform: scaleX(1); }

#navbar .menu a:hover {
  color: var(--color-primary-dark);
  background: rgba(0, 88, 66, 0.05);
}

#navbar .menu li.current > a {
  color: var(--color-primary-dark);
  font-weight: 700;
  background: rgba(0, 88, 66, 0.03);
}
#navbar .menu li.current > a::after { transform: scaleX(1); }

/* Dropdown chevron */
#navbar .menu .dropdown > a::before {
  content: '';
  display: none;
}
#navbar .menu .dropdown > a .chevron,
#navbar .menu .dropdown > a::before { display: none; }

/* Use a pseudo element for the chevron */
.dropdown > a[href*="about"]::after,
#navbar .menu .dropdown > a {
  /* Keep underline behavior from above */
}

/* Dropdown Panel */
#navbar .menu .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  z-index: 1000;
  list-style: none;
  margin: 0;
  animation: dropFade 0.22s var(--ease-out);
}

@keyframes dropFade {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#navbar .menu .dropdown-content li { display: block; }

#navbar .menu .dropdown-content a {
  display: block;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  border-radius: 6px;
  background: transparent;
  border: none;
  text-decoration: none !important;
}
#navbar .menu .dropdown-content a::after { display: none; }

#navbar .menu .dropdown-content a:hover {
  background: var(--color-primary-bg);
  color: var(--green-950);
  padding-left: 18px;
}

#navbar .menu .dropdown:hover .dropdown-content { display: block; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
#body { width: 100% !important; margin: 0 !important; display: block !important; }

.body-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 28px 64px;
  display: flex;
  gap: 40px;
  min-height: 55vh;
}

#main {
  flex: 1;
  min-width: 0;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

/* ==========================================================================
   SIDEBAR — Refined Card Blocks
   ========================================================================== */
#sidebar { display: none; }
.sidebar { width: 280px; flex-shrink: 0; }
.sidebar-left { order: -1; }

#leftSidebar {
  width: 280px;
  font-size: 0.82rem;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  height: auto !important;
  overflow: visible !important;
  display: block !important;
}

#leftSidebar div.block,
#rightSidebar div.block {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#leftSidebar div.block::before,
#rightSidebar div.block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

#leftSidebar div.block:hover,
#rightSidebar div.block:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-border);
}
#leftSidebar div.block:hover::before,
#rightSidebar div.block:hover::before { opacity: 1; }

#rightSidebar div.block span.blockTitle,
#leftSidebar div.block span.blockTitle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 10px;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green-950);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-accent);
}

#rightSidebar {
  width: 280px;
  font-size: 0.82rem;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  height: auto !important;
  overflow: visible !important;
  border: none !important;
  background: transparent !important;
}

.block p { margin: 0 0 8px !important; }
.block ul { list-style: none; padding: 0; margin: 0; }
.block li {
  padding: 6px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--color-border-light);
}
.block li:last-child { border-bottom: none; }
.block li::before { display: none; }
.block li a {
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.block li a:hover {
  color: var(--green-950);
  padding-left: 4px;
}

.block li a::before {
  content: '›';
  margin-right: 2px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1em;
  flex-shrink: 0;
}

.block input.textField,
.block select.selectMenu,
.block input.button {
  width: 100%;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.block img { border-radius: 6px; margin: 6px 0; }

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
#breadcrumb {
  padding: 0 0 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.76rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

#breadcrumb a { color: var(--color-text-muted); }
#breadcrumb a:hover { color: var(--green-950); }
#breadcrumb a.current { font-weight: 600; color: var(--color-text); }

/* ==========================================================================
   PAGE TITLES — High Contrast
   ========================================================================== */
.page-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-950);
  margin: 0 0 6px;
  padding: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin: 0 0 24px;
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   HERO SECTION — Dramatic Banner
   ========================================================================== */
.journal-hero {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 48px;
  margin: -40px -28px 36px;
  background: linear-gradient(155deg, var(--green-950) 0%, var(--green-800) 40%, var(--green-700) 70%, var(--green-600) 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,34,25,0.3);
  min-height: 300px;
}

.journal-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197,160,43,0.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.journal-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.journal-hero .hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 50%, var(--gold-600) 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, var(--gold-600) 1px, transparent 1px);
  background-size: 60px 60px;
}

.journal-hero .hero-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-600), transparent 60%, var(--gold-500));
  opacity: 0.5;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(197,160,43,0.12);
  border: 1px solid rgba(197,160,43,0.2);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge svg { width: 14px; height: 14px; }

.hero-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.hero-description {
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  max-width: 640px;
}
.hero-description p { margin: 0 0 8px; }
.hero-description a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 2px; }
.hero-description a:hover { color: var(--gold-300); }

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none !important;
  cursor: pointer;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: var(--green-950) !important;
  box-shadow: 0 4px 16px rgba(197,160,43,0.3);
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(197,160,43,0.4);
  color: var(--green-950) !important;
}

.hero-btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--white) !important;
  border: 1.5px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  color: var(--white) !important;
}

.hero-btn svg { flex-shrink: 0; }

.hero-image {
  flex-shrink: 0;
  width: 200px;
  position: relative;
  z-index: 2;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transition: transform 0.5s var(--ease-out);
}
.hero-image:hover img { transform: scale(1.03) rotate(-0.5deg); }

/* ==========================================================================
   HERO STATS BAR
   ========================================================================== */
.hero-stats {
  display: flex;
  gap: 0;
  margin: -6px auto 0;
  max-width: var(--max-width);
  padding: 0 28px;
  position: relative;
  z-index: 3;
}

.hero-stats-inner {
  display: flex;
  gap: 0;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-stat-item {
  flex: 1;
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid var(--color-border-light);
  transition: background 0.3s var(--ease-out);
}
.hero-stat-item:last-child { border-right: none; }
.hero-stat-item:hover { background: var(--color-primary-bg); }

.hero-stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-950);
  line-height: 1.1;
  margin-bottom: 2px;
}

.hero-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .hero-stats { padding: 0 16px; margin: -4px auto 0; }
  .hero-stats-inner { flex-wrap: wrap; border-radius: var(--radius-sm); }
  .hero-stat-item { flex: 1 1 50%; padding: 12px 10px; border-bottom: 1px solid var(--color-border-light); }
  .hero-stat-item:nth-child(2) { border-right: none; }
  .hero-stat-item:nth-child(3), .hero-stat-item:nth-child(4) { border-bottom: none; }
  .hero-stat-number { font-size: 1.2rem; }
}

/* ==========================================================================
   CONTENT — Typography System
   ========================================================================== */
#content {
  padding: 0;
  border: none;
  font-size: 0.9rem;
  line-height: 1.8;
}

#content h2, #main > h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-950);
  margin: 36px 0 16px;
  padding: 0 0 12px !important;
  position: relative;
}

#content h2::after, #main > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

#content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-950);
  margin: 28px 0 12px;
}

#content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin: 22px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
}

.additional-content {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   CONTENT TABS
   ========================================================================== */
#content ul.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-bottom: 2px solid var(--color-border);
}

#content ul.menu li {
  display: inline-block;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent !important;
}

#content ul.menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary) !important;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: var(--transition-fast);
  text-decoration: none !important;
  margin-bottom: -2px;
}

#content ul.menu a:hover {
  color: var(--green-950) !important;
  background: var(--color-primary-bg);
  border-color: var(--color-border);
}

#content ul.menu li.current a {
  color: var(--green-950) !important;
  background: var(--white);
  border-color: var(--color-border);
  border-bottom-color: var(--white);
  font-weight: 600;
}

/* ==========================================================================
   CURRENT ISSUE
   ========================================================================== */
.current-issue-section { margin-top: 32px; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-accent);
}

.section-title h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-950);
  margin: 0 !important;
  padding: 0 !important;
}
.section-title h3 svg { color: var(--color-accent); flex-shrink: 0; }

.section-title-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary) !important;
  text-decoration: none !important;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-title-link:hover { transform: translateX(3px); color: var(--green-950) !important; }

.issue-identification {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-950);
  margin-bottom: 18px;
}

/* ==========================================================================
   ANNOUNCEMENTS
   ========================================================================== */
#announcementsHome {
  margin: 28px 0;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

#announcementsHome::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
  border-radius: 0 2px 2px 0;
}

#announcementsHome:hover { box-shadow: var(--shadow-md); }

#announcementsHome h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-950);
  margin: 0 0 14px;
}
#announcementsHome h3 svg { color: var(--color-accent); }

#announcementsHome .announcementsMore { margin-top: 12px; text-align: right; }
#announcementsHome .announcementsMore a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.82rem;
}

/* ==========================================================================
   ARTICLE CARDS — Modern Card Grid
   ========================================================================== */
table.tocArticle, div.tocArticle {
  width: 100%;
  margin-bottom: 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

table.tocArticle {
  border-collapse: separate;
  border-spacing: 0;
}

div.tocArticle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  gap: 20px;
}

table.tocArticle::before, div.tocArticle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

table.tocArticle:hover, div.tocArticle:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-border);
  transform: translateY(-2px);
}
table.tocArticle:hover::before, div.tocArticle:hover::before { opacity: 1; }

table.tocArticle td { padding: 18px 22px; vertical-align: top; }
table.tocArticle tr { background: transparent !important; }
table.tocArticle tr:hover { background: transparent !important; }

.tocArticleCoverImage { display: none !important; }
.tocArticleTitleAuthors, div.tocArticleTitleAuthors { flex: 1; min-width: 0; }

.tocTitle {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 6px;
  color: var(--green-950);
}
.tocTitle a {
  color: var(--green-950);
  text-decoration: none;
  transition: var(--transition-fast);
}
.tocTitle a:hover { color: var(--color-primary); }

.tocAuthors {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  padding: 0;
  margin: 4px 0 0;
  font-style: italic;
}

.tocDOI {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  font-family: 'Roboto Mono', monospace;
}
.tocDOI a { color: var(--color-text-muted); }
.tocDOI a:hover { color: var(--color-primary); }

td.tocArticleGalleysPages {
  width: 140px;
  text-align: right;
  vertical-align: middle !important;
}

div.tocArticleGalleysPages {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  text-align: right;
  flex-shrink: 0;
  width: auto;
}

.tocGalleys a.file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  border-radius: 6px;
  text-decoration: none !important;
  transition: var(--transition);
  margin: 2px;
  box-shadow: 0 2px 8px rgba(0,88,66,0.2);
}

.tocGalleys a.file:hover {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,88,66,0.3);
}

.tocPages {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.tocSectionTitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-950);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  padding-left: 14px;
  border-left: 4px solid var(--color-accent);
}

/* ==========================================================================
   ISSUE VIEW
   ========================================================================== */
#issueDescription {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
}

#issueCoverImage { margin-bottom: 24px; }
#issueCoverImage img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-width: 240px;
}

/* ==========================================================================
   ACCESS KEY
   ========================================================================== */
#accessKey {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: var(--color-accent-bg);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}
#accessKey img { width: 16px; height: 16px; }

/* ==========================================================================
   FORMS — Modern Inputs
   ========================================================================== */
input.textField, select.selectMenu, textarea.textArea, input.uploadField {
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--color-text);
  background: var(--white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

input.textField:focus, select.selectMenu:focus, textarea.textArea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,88,66,0.08);
}

input.button, input.defaultButton {
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

input.defaultButton {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0,88,66,0.25);
}
input.defaultButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,88,66,0.35);
}

input.button {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
input.button:hover { background: var(--color-border); }

/* ==========================================================================
   TABLES — Clean Academic
   ========================================================================== */
table.listing {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
table.listing td { padding: 12px 16px; border-bottom: 1px solid var(--color-border-light); }
table.listing tr.heading td, table.listing td.heading {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border-bottom: 2px solid var(--color-accent);
}
table.listing tr.data:hover { background: var(--color-primary-bg); }
table.data td { padding: 8px 12px; }
table.data td.label { font-weight: 600; white-space: nowrap; }

/* ==========================================================================
   ARTICLE DETAIL VIEW — Premium Layout
   ========================================================================== */
#topBar { margin-bottom: 0; }

#articleCoverImage {
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
#articleCoverImage img {
  max-width: 260px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

#articleTitle h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-950);
  margin: 0 0 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

#authorString {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  font-style: italic;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

#articleAbstract {
  background: linear-gradient(135deg, var(--color-primary-bg), rgba(0,88,66,0.03));
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 20px 0 28px;
  position: relative;
}

#articleAbstract h3, #articleAbstract h4 {
  margin-top: 0;
  font-family: var(--font-serif);
  color: var(--green-950);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

#articleAbstract h4::before {
  content: '📋';
  font-size: 1.1em;
}

#articleSubject {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--color-accent-bg);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
}

#articleSubject h4 {
  margin-top: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
  font-weight: 700;
}
#articleSubject h4::before { content: '🏷️ '; }

#articleFullText {
  margin: 24px 0;
  padding: 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

#articleFullText h4 {
  margin-top: 0;
  font-family: var(--font-serif);
  color: var(--green-950);
  font-size: 1rem;
  font-weight: 700;
}

#articleFullText h4::before {
  content: '📄 ';
}

#articleFullText a.file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,88,66,0.2);
  margin: 4px;
}

#articleFullText a.file:hover {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,88,66,0.3);
}

#articleCitations {
  margin: 24px 0;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

#articleCitations h4 {
  margin-top: 0;
  font-family: var(--font-serif);
  color: var(--green-950);
  font-size: 1rem;
  font-weight: 700;
}
#articleCitations h4::before { content: '📚 '; }

#articleCitations p {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
#articleCitations p:last-child { border-bottom: none; }

.article-sharing, .article-copyright, .article-license {
  padding: 14px 0;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.8rem;
}
.article-copyright { color: var(--color-text-secondary); }

.footer-issn-page {
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.articleDOI {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: 'Roboto Mono', monospace;
  margin-top: 8px;
}
.articleDOI a { color: var(--color-text-muted); }
.articleDOI a:hover { color: var(--color-primary); }

/* PubID display */
#pub-id-DOI, a[id^="pub-id"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--color-primary);
  font-family: 'Roboto Mono', monospace;
}

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */
#searchForm {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
#searchForm input.textField {
  flex: 1;
  min-width: 200px;
}

/* ==========================================================================
   FOOTER — Premium Dark
   ========================================================================== */
.site-footer {
  background: var(--green-950);
  color: rgba(255,255,255,0.75);
  margin-top: 64px;
  position: relative;
}

.footer-wave {
  position: relative;
  top: -1px;
  line-height: 0;
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: 48px;
}

.footer-main { padding: 48px 0 28px; }

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.footer-desc {
  font-size: 0.8rem;
  line-height: 1.65;
  opacity: 0.55;
  margin: 0 0 12px;
}

.footer-brand-stifarm {
  font-weight: 700;
  color: var(--gold-400);
  font-size: 0.85rem;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  font-size: 0.78rem;
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0.6;
  line-height: 1.5;
}
.footer-icon { flex-shrink: 0; width: 16px; text-align: center; }
.footer-contact a { color: var(--gold-400); }
.footer-contact a:hover { color: var(--gold-300); }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 3px 0; }
.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-links a:hover {
  color: var(--gold-400);
  padding-left: 4px;
}

.footer-search {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.footer-search-input {
  flex: 1;
  padding: 9px 14px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  transition: var(--transition);
}
.footer-search-input::placeholder { color: rgba(255,255,255,0.25); }
.footer-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.08);
}

.footer-search-btn {
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: var(--green-950);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.footer-search-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(197,160,43,0.3); }

.footer-issn {
  font-size: 0.72rem;
  opacity: 0.4;
  line-height: 1.6;
}
.footer-issn strong { color: var(--gold-400); }

.footer-custom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  opacity: 0.5;
}
.footer-custom p { margin: 0 0 4px; }
.footer-custom img { display: inline; }

.footer-bar {
  background: rgba(0,0,0,0.3);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
}

.footer-copyright { margin: 0; opacity: 0.45; }
.footer-copyright a { color: var(--gold-400); }
.footer-copyright a:hover { color: var(--gold-300); }
.footer-publisher { margin: 0; opacity: 0.45; }
.footer-publisher strong { color: var(--gold-400); font-weight: 600; }

.cc-license {
  text-align: center;
  padding: 14px;
  font-size: 0.74rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   ARCHIVE PAGE — Clean Card Layout
   ========================================================================== */

.archive-container { margin-top: 0; }

#issues {
  display: block;
}

#issues > div[style*="float"],
#issues div[style*="float: left"],
#issues div[style*="clear:left"] {
  float: none !important;
  clear: none !important;
  width: 100% !important;
}
#issues .separator { display: none; }
#issues br { display: none; }

/* --- Year Group --- */
.archive-year-group {
  margin-bottom: 48px;
}

.archive-year-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-950);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

/* --- Card List --- */
.archive-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Card --- */
.archive-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease-out);
  overflow: hidden;
}

.archive-card:hover {
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-md);
}

.archive-card-link {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  min-height: 100px;
}

/* --- Cover --- */
.archive-card-cover {
  width: 90px;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--green-50), var(--green-100));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-out);
}

.archive-card:hover .archive-card-cover img {
  transform: scale(1.05);
}

.archive-card-cover:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-300);
  font-size: 1.6rem;
  font-weight: 300;
}
.archive-card-cover:empty::after {
  content: '📄';
}

/* --- Body --- */
.archive-card-body {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.archive-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-card-badge {
  display: inline-flex;
  padding: 2px 10px;
  background: var(--color-primary-bg);
  color: var(--green-700);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary-border);
  line-height: 1.4;
}

.archive-card-date {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.archive-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-950);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.archive-card:hover .archive-card-title {
  color: var(--color-primary);
}

.archive-card-desc {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-card-action {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: all 0.2s var(--ease-out);
}

.archive-card:hover .archive-card-action {
  color: var(--green-950);
}

/* --- Pagination --- */
.archive-pagination {
  margin-top: 36px;
  padding: 18px 0 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.archive-pagination-info {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.archive-pagination-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.archive-pagination-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-fast);
}

.archive-pagination-links a:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary-border);
  color: var(--green-950);
}

.archive-pagination-links strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--color-primary);
  color: var(--white);
  border-radius: var(--radius-sm);
}

/* --- Empty State --- */
.archive-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.archive-empty svg {
  opacity: 0.3;
}

.archive-empty p {
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

/* ==========================================================================
   HERO OVERRIDES
   ========================================================================== */
.hero-description * { font-family: var(--font-sans) !important; }
.hero-description p,
.hero-description span {
  font-size: 0.86rem !important;
  line-height: 1.8 !important;
  color: rgba(255,255,255,0.8) !important;
}

.block.custom * { font-family: var(--font-sans) !important; }
.block.custom span.blockTitle { font-family: var(--font-sans) !important; }
.block.custom address { font-style: normal; }
.block.custom ul.sidemenu { list-style: none; padding: 0; margin: 0; }
.block.custom ul.sidemenu li {
  padding: 5px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.8rem;
  line-height: 1.5;
}
.block.custom ul.sidemenu li:last-child { border-bottom: none; }
.block.custom ul.sidemenu a { color: var(--color-text); text-decoration: none; display: block; }
.block.custom ul.sidemenu a:hover { color: var(--green-950); padding-left: 4px; }

/* ==========================================================================
   ABOUT PAGES — Card Sections
   ========================================================================== */
ol.editorialTeam {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

ol.editorialTeam li {
  list-style: none;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: var(--transition);
}
ol.editorialTeam li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary-border);
}
ol.editorialTeam li strong {
  color: var(--green-950);
  display: block;
  font-size: 0.92rem;
}
ol.editorialTeam li em {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* About page index sections */
#content .separator { display: none; }

/* ==========================================================================
   LOGIN & REGISTER — Centered Form
   ========================================================================== */
#content form[name="login"],
#content form[name="register"],
#content form[name="lostPasswordForm"] {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

#content form[name="login"] input.textField,
#content form[name="register"] input.textField,
#content form[name="lostPasswordForm"] input.textField {
  width: 100%;
  margin-bottom: 12px;
}

/* ==========================================================================
   SIDEBAR CUSTOM CONTENT
   ========================================================================== */
.intro {
  background: var(--color-accent-bg);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.indexers {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.indexers a {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: var(--transition);
}
.indexers a:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.indexers a img { height: 32px; width: auto; }

.banner-img {
  display: inline-block;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.banner-img:hover { opacity: 0.85; }

.highlight {
  background: var(--color-accent-bg);
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

/* ==========================================================================
   RESPONSIVE — Mobile First
   ========================================================================== */
@media (max-width: 1024px) {
  .body-inner { flex-direction: column; padding: 24px 20px; }
  .sidebar, #leftSidebar, #rightSidebar { width: 100%; max-width: 100%; }
  .sidebar-left { order: 1; }
  .sidebar-right { order: 2; }
  #main { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  :root { --header-height: 56px; }

  .header-topbar { display: none; }
  .header-inner { padding: 0 16px; }
  .header-logo img { max-height: 30px; }
  .header-title img { max-height: 32px; }
  .header-title-main { font-size: 0.95rem; }
  .header-title-sub { font-size: 0.5rem; }

  .nav-toggle { display: block; }

  #navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--color-border);
    box-shadow: -4px 0 30px rgba(0,0,0,0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 72px 20px 20px;
    transition: right 0.35s var(--ease-out);
    z-index: 100;
    overflow-y: auto;
  }
  #navbar.active { right: 0; }
  body.nav-open { overflow: hidden; }

  #navbar .menu { flex-direction: column; width: 100%; }
  #navbar .menu a {
    padding: 12px 0;
    width: 100%;
    white-space: normal;
    border-bottom: 1px solid var(--color-border-light);
    border-radius: 0;
  }
  #navbar .menu a::after { display: none; }

  #navbar .menu .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 14px;
    margin: 0;
    animation: none;
    background: transparent;
    transform: none;
  }
  #navbar .menu .dropdown.open .dropdown-content { display: block; }
  #navbar .menu .dropdown-content a {
    border-bottom: 1px solid var(--color-border-light);
    padding: 10px 0;
  }
  #navbar .menu .dropdown-content a:hover { transform: none; padding-left: 0; }

  #navbar .menu .dropdown > a::after {
    content: '+';
    border: none;
    width: auto;
    height: auto;
    margin-left: auto;
    font-size: 1rem;
    font-weight: 300;
    transform: none;
    opacity: 0.4;
    position: static;
    background: none;
  }
  #navbar .menu .dropdown.open > a::after { content: '−'; }
  #navbar .menu .dropdown:hover .dropdown-content { display: none; }
  #navbar .menu .dropdown.open:hover .dropdown-content { display: block; }

  .journal-hero {
    flex-direction: column;
    padding: 28px 20px;
    margin: -24px -20px 24px;
    gap: 20px;
    min-height: auto;
  }
  .hero-image { width: 100%; max-width: 220px; }
  .hero-title { font-size: 1.15rem; }
  .hero-description { font-size: 0.82rem; }
  .hero-actions { flex-direction: column; }
  .hero-btn { width: 100%; justify-content: center; }

  .section-title { flex-direction: column; align-items: flex-start; gap: 8px; }

  table.tocArticle, table.tocArticle tr, table.tocArticle td, div.tocArticle { display: block; }
  table.tocArticle td { padding: 14px 16px; }
  div.tocArticle { padding: 14px 16px; }
  .tocArticleGalleysPages, td.tocArticleGalleysPages, div.tocArticleGalleysPages {
    width: auto;
    text-align: left;
    padding-top: 0 !important;
    align-items: flex-start;
  }
  .tocGalleys { text-align: left; }

  .body-inner { padding: 16px; gap: 20px; }
  .page-title { font-size: 1.5rem; }
  #content h2, #main > h2 { font-size: 1.15rem; }
  #content h3 { font-size: 1.05rem; }
  .site-footer { margin-top: 40px; }

  .footer-wave svg { height: 24px; }
  .footer-main { padding: 28px 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bar-inner { flex-direction: column; text-align: center; gap: 6px; }

  #articleTitle h3 { font-size: 1.3rem; }
  #articleAbstract { padding: 18px 20px; }
  #articleFullText { padding: 18px 20px; }

  /* --- Archive Mobile --- */
  .archive-year-title { font-size: 1.15rem; margin-bottom: 14px; }
  .archive-year-group { margin-bottom: 32px; }
  .archive-card-list { gap: 10px; }
  .archive-card-link { flex-direction: column; min-height: 0; }
  .archive-card-cover { width: 100%; height: 120px; }
  .archive-card-body { padding: 14px 16px; }
  .archive-card-title { font-size: 0.85rem; }
  .archive-pagination { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  #navbar { width: 100%; }
  .header-title-main { font-size: 0.85rem; }
  .header-inner { padding: 0 12px; }
  .header-logo img { max-height: 24px; }

  #content ul.menu { flex-direction: column; border-bottom: none; }
  #content ul.menu li { border-radius: var(--radius-sm); }
  #content ul.menu a {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 3px;
  }
  #content ul.menu li.current a { border-bottom-color: var(--color-border); }
  #accessKey { flex-direction: column; align-items: flex-start; }

  .archive-year-title { font-size: 1rem; }
  .archive-card-cover { height: 100px; }
  .archive-card-body { padding: 12px 14px; gap: 4px; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header, .site-footer, .sidebar, .nav-toggle, #navbar,
  .header-topbar, .footer-wave, .hero-actions, .hero-stats { display: none !important; }
  .body-inner { display: block; padding: 0; }
  #main { width: 100% !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: #000 !important; }
}

/* ==========================================================================
   SCROLLBAR & FOCUS
   ========================================================================== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

html { scroll-behavior: smooth; }

#content img { border-radius: var(--radius-sm); max-width: 100%; height: auto; }
#content dt { font-weight: 700; color: var(--green-950); margin-top: 8px; }

#content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
}
#content table td, #content table th {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
}
#content table th {
  background: var(--color-primary-bg);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: left;
  color: var(--green-950);
}

/* ==========================================================================
   LEGACY OVERRIDES & RESPONSIVE RESILIENCE
   ========================================================================== */
html body #container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  background: var(--color-bg) !important;
  display: block !important;
  text-align: left !important;
}

html body #body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  display: block !important;
  float: none !important;
  padding: 0 !important;
}

html body #main {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  flex: 1 !important;
}

html body #header,
html body #headerTitle,
html body #navbar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  display: block !important;
}

html body #leftSidebar,
html body #rightSidebar {
  width: 280px !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
}

@media (max-width: 992px) {
  html body .body-inner {
    flex-direction: column !important;
    padding: 24px 16px 40px !important;
  }
  html body #leftSidebar,
  html body #rightSidebar { width: 100% !important; }
}
