
/* ============================================================
   RANA UNIVERSITY PRESS — SINGLE JOURNAL THEME
   مجله: فصل‌نامهٔ علمی-تحقیقی پوهنتون رنا
   زبان: دری (فارسی) | چیدمان: راست‌چین (RTL)
   ============================================================ */

:root {
  --ru-crimson: #890c25;
  --ru-orange: #f47b20;
  --ru-navy: #2b2427;
  --ru-rose: #fff6f8;
  /* System fonts: nothing is downloaded. A different font is chosen in the theme options. */
  --font-ui: 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --max: 1240px;

  --journal-accent: #890c25;
  --journal-accent-ink: #890c25;
  --journal-on-accent: #ffffff;
  --journal-soft: #f9e9ed;
  --journal-glow: rgba(137, 12, 37, 0.22);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--theme-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--journal-accent-ink); text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--ru-orange); color: var(--ru-navy); }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* ============ توکن‌های قالب ============ */

body[data-theme="heritage"] {
  --theme-bg: #fdfbf7;
  --surface: #ffffff;
  --surface-alt: #fff6f8;
  --text: #181818;
  --muted: #625a5d;
  --line: #e7e0e2;
  --heading-font: var(--font-serif);
  --radius: 6px;
  --card-shadow: none;
  --button-radius: 4px;
  --header-bg: #ffffff;
  --header-text: #181818;
  --header-muted: #5a5356;
  --header-border: var(--line);
  --brand-muted: #857c80;
  --nav-active: var(--journal-accent-ink);
  --nav-bg: #ffffff;
  --nav-text: #5a5356;
  --nav-border: var(--line);
  --masthead-bg: linear-gradient(260deg, #fff6f8 0%, #ffffff 72%);
  --masthead-text: #181818;
  --masthead-muted: #625a5d;
  --masthead-border: 1px solid var(--line);
  --masthead-line: rgba(137, 12, 37, 0.08);
  --masthead-kicker: var(--journal-accent-ink);
  --masthead-pill-bg: rgba(137, 12, 37, 0.05);
  --masthead-pill-border: rgba(137, 12, 37, 0.12);
  --masthead-pill-text: #4a4245;
}

body[data-theme="horizon"] {
  --theme-bg: #fdfbf7;
  --surface: #ffffff;
  --surface-alt: #fff6f8;
  --text: #181818;
  --muted: #625a5d;
  --line: #e7e0e2;
  --heading-font: var(--font-ui);
  --radius: 6px;
  --card-shadow: none;
  --button-radius: 4px;
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-text: #211a1d;
  --header-muted: #5a5356;
  --header-border: var(--line);
  --brand-muted: #857c80;
  --nav-active: var(--journal-accent-ink);
  --nav-bg: #ffffff;
  --nav-text: #5a5356;
  --nav-border: var(--line);
  --masthead-bg: linear-gradient(245deg, #890c25 0%, #3a2f33 48%, #2b2427 100%);
  --masthead-text: #ffffff;
  --masthead-muted: rgba(255, 255, 255, 0.78);
  --masthead-border: 0;
  --masthead-line: rgba(255, 255, 255, 0.14);
  --masthead-kicker: var(--ru-orange);
  --masthead-pill-bg: rgba(255, 255, 255, 0.10);
  --masthead-pill-border: rgba(255, 255, 255, 0.18);
  --masthead-pill-text: rgba(255, 255, 255, 0.90);
}

body[data-theme="prestige"] {
  --theme-bg: #fdfbf7;
  --surface: #ffffff;
  --surface-alt: #fff6f8;
  --text: #181818;
  --muted: #665e61;
  --line: #e7e0e2;
  --heading-font: var(--font-serif);
  --radius: 6px;
  --card-shadow: none;
  --button-radius: 4px;
  --header-bg: #2b2427;
  --header-text: #ffffff;
  --header-muted: rgba(255, 255, 255, 0.72);
  --header-border: rgba(255, 255, 255, 0.12);
  --brand-muted: rgba(255, 255, 255, 0.55);
  --nav-active: var(--ru-orange);
  --nav-bg: #2b2427;
  --nav-text: rgba(255, 255, 255, 0.70);
  --nav-border: rgba(255, 255, 255, 0.12);
  --masthead-bg: #2b2427;
  --masthead-text: #ffffff;
  --masthead-muted: rgba(255, 255, 255, 0.72);
  --masthead-border: 4px solid var(--ru-orange);
  --masthead-line: rgba(255, 255, 255, 0.14);
  --masthead-kicker: var(--ru-orange);
  --masthead-pill-bg: rgba(255, 255, 255, 0.10);
  --masthead-pill-border: rgba(255, 255, 255, 0.18);
  --masthead-pill-text: rgba(255, 255, 255, 0.90);
}

/* ============ سرصفحه ============ */

.site-header {
  position: relative;
  z-index: 90;
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-border);
}

body[data-theme="prestige"] .site-header { border-bottom: 3px solid var(--ru-orange); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 82px;
}

.university-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: inherit;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.3; }

.brand-copy strong {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
}

.brand-copy small {
  margin-top: 3px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: auto;
  margin-inline-end: 0;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--header-muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  left: 100%;
  bottom: 0;
  height: 2px;
  background: var(--nav-active);
  transition: left 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after { left: 0; }

.site-nav a.active { color: var(--nav-active); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ============ دکمه‌ها ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--journal-accent);
  border-color: var(--journal-accent);
  color: var(--journal-on-accent);
}
.btn-primary:hover { filter: brightness(0.92); transform: translateY(-1px); }

.btn-accent {
  background: var(--ru-orange);
  border-color: var(--ru-orange);
  color: var(--ru-navy);
}
.btn-accent:hover { filter: brightness(0.95); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
  opacity: 0.82;
}
.btn-ghost:hover { opacity: 1; background: rgba(0, 0, 0, 0.03); }

body[data-theme="prestige"] .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

body[data-theme="prestige"] .site-header .btn-primary {
  background: var(--ru-orange);
  border-color: var(--ru-orange);
  color: var(--ru-navy);
}
body[data-theme="prestige"] .site-header .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============ سربرگ مجله ============ */

.journal-masthead {
  position: relative;
  overflow: hidden;
  padding: 54px 0 58px;
  background: var(--masthead-bg);
  color: var(--masthead-text);
  border-bottom: var(--masthead-border);
}

.journal-masthead::before {
  content: "";
  position: absolute;
  top: -160px;
  left: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid var(--masthead-line);
  border-radius: 50%;
  pointer-events: none;
}

.journal-masthead::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--journal-glow);
  opacity: 0.5;
  filter: blur(20px);
  pointer-events: none;
}

body[data-theme="horizon"] .journal-masthead { border-radius: 0 0 28px 28px; }

.masthead-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.masthead-cover .cover {
  width: 190px;
  padding: 18px;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 28px 50px -30px rgba(0, 0, 0, 0.6);
}

body[data-theme="horizon"] .masthead-cover { transform: rotate(1.5deg); }

body[data-theme="prestige"] .masthead-cover .cover {
  outline: 2px solid rgba(244,123,32, 0.7);
  outline-offset: 6px;
}

.journal-kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--masthead-kicker);
}

.masthead-copy h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-family: var(--heading-font);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.3;
  font-weight: 700;
}

.masthead-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--masthead-muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.meta-pill {
  padding: 5px 12px;
  border: 1px solid var(--masthead-pill-border);
  border-radius: 999px;
  background: var(--masthead-pill-bg);
  color: var(--masthead-pill-text);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body[data-theme="horizon"] .journal-masthead .btn-primary,
body[data-theme="prestige"] .journal-masthead .btn-primary {
  background: var(--ru-orange);
  border-color: var(--ru-orange);
  color: var(--ru-navy);
}

/* ============ نوار ناوبری مجله ============ */

.journal-nav {
  z-index: 80;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.journal-nav .container {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.journal-nav .container::-webkit-scrollbar { display: none; }

.journal-nav a {
  padding: 15px 16px;
  border-bottom: 3px solid transparent;
  color: var(--nav-text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.journal-nav a:hover { color: var(--nav-active); }
.journal-nav a.active {
  border-bottom-color: var(--journal-accent);
  color: var(--nav-active);
}

body[data-theme="horizon"] .journal-nav .container {
  gap: 4px;
  padding-top: 6px;
  padding-bottom: 6px;
}
body[data-theme="horizon"] .journal-nav a {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
}
body[data-theme="horizon"] .journal-nav a:hover,
body[data-theme="horizon"] .journal-nav a.active {
  background: var(--journal-soft);
}

body[data-theme="prestige"] .journal-nav a:hover { background: rgba(255, 255, 255, 0.08); }
body[data-theme="prestige"] .journal-nav a.active {
  border-bottom-color: var(--ru-orange);
  color: var(--ru-orange);
}

/* ============ چیدمان مجله ============ */

.journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
  align-items: start;
  padding: 34px 0 82px;
}

body[data-theme="prestige"] .journal-layout {
  grid-template-columns: 330px minmax(0, 1fr);
}
body[data-theme="prestige"] .journal-sidebar { order: -1; }

.journal-main { min-width: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--journal-accent-ink); }

.content-section { margin-bottom: 42px; }
.content-section:last-child { margin-bottom: 0; }

/* ============ عنوان بخش‌ها ============ */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  color: var(--journal-accent-ink);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  font-weight: 700;
}

.text-link {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--journal-accent-ink);
  white-space: nowrap;
}
.text-link:hover { text-decoration: underline; }

/* ============ شمارهٔ کنونی ============ */

.current-issue-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.current-issue-card .cover { width: 140px; padding: 14px; }

.current-issue-card h3 {
  margin: 5px 0 8px;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 700;
}

.current-issue-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.issue-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  color: var(--journal-accent-ink);
}

.issue-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ مقالات ============ */

.article-list { border-top: 1px solid var(--line); }

.article-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.article-card:hover {
  background: linear-gradient(270deg, transparent, var(--journal-soft), transparent);
}

.article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.article-section {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  color: var(--journal-accent-ink);
}

.article-card h3 {
  max-width: 760px;
  margin: 0 0 8px;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 700;
}
.article-card:hover h3 { color: var(--journal-accent-ink); }

.article-authors {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12.5px;
}

.article-meta {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  opacity: 0.9;
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--button-radius);
  background: var(--journal-soft);
  color: var(--journal-accent-ink);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}
.pdf-link:hover { background: var(--journal-accent); color: var(--journal-on-accent); }

.abstract-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.abstract-toggle:hover {
  border-color: var(--journal-accent);
  color: var(--journal-accent-ink);
  background: var(--journal-soft);
}
.abstract-toggle[aria-expanded="true"] {
  background: var(--journal-accent);
  border-color: var(--journal-accent);
  color: var(--journal-on-accent);
}

.abstract-toggle .chevron {
  transition: transform 0.25s ease;
  font-size: 9px;
  display: inline-block;
}
.abstract-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* ============ چکیده ============ */

.article-abstract {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}
.article-abstract.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 16px;
}
.article-abstract > div {
  overflow: hidden;
}
.abstract-inner {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--journal-accent);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.abstract-inner h4 {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  color: var(--journal-accent-ink);
}
.abstract-inner p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.95;
}
.abstract-inner p:last-child { margin-bottom: 0; }
.abstract-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  align-items: center;
}
.abstract-keywords span {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
}
.abstract-label {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* ============ اطلاعیه‌ها ============ */

.announcement-list { display: grid; gap: 12px; }

.announcement {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--journal-accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.announcement-date {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
}

.announcement-tag {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  color: var(--journal-accent-ink);
}

.announcement h3 {
  margin: 0 0 6px;
  font-family: var(--heading-font);
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 700;
}

.announcement p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

/* ============ ستون کنار ============ */

.journal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

body[data-theme="prestige"] .sidebar-card {
  border-top: 2px solid rgba(244, 123, 32, 0.8);
}

.sidebar-card h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.sidebar-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.submit-card {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background: linear-gradient(225deg, var(--ru-navy), #1a1416);
  color: #fff;
}

.submit-card h3 {
  border-bottom-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.submit-card p { color: rgba(255, 255, 255, 0.72); }

.submit-card::after {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--ru-orange);
  opacity: 0.18;
  filter: blur(40px);
}

.submit-card .btn { margin-bottom: 10px; }

.submit-card .text-link {
  display: inline-block;
  color: var(--ru-orange);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-alt);
}

.metric strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--journal-accent-ink);
}

.metric span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.5;
}

/* ============ نمایه‌سازی با لوگو ============ */

.indexing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.indexing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-alt);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 92px;
}

.indexing-item:hover {
  transform: translateY(-2px);
  border-color: var(--journal-accent);
  box-shadow: 0 8px 20px -14px var(--journal-glow);
}

.indexing-logo {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  overflow: hidden;
}

body[data-theme="prestige"] .indexing-logo { background: #fff6f8; }

.indexing-logo img,
.indexing-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.indexing-name {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  text-align: center;
}

.indexing-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
}

/* ============ کلیدواژه ============ */

.keyword-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.keyword {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--surface-alt);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
}
.keyword:hover {
  border-color: var(--journal-accent);
  background: var(--journal-soft);
  color: var(--journal-accent-ink);
}

.sidebar-text {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}
.sidebar-text strong { color: var(--text); }
.sidebar-text a { color: var(--journal-accent-ink); }

/* ============ جلد مجله ============ */

.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(215deg, #890c25 0%, #3a2f33 58%, #26030a 100%);
  color: #fff;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.55);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.16), transparent 45%);
  pointer-events: none;
}

.cover::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.cover-university {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  opacity: 0.8;
}

.cover-acronym {
  position: relative;
  z-index: 1;
  margin: auto 0 8px;
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
}

.cover-title {
  position: relative;
  z-index: 1;
  max-width: 95%;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
}

.cover-issue {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 10px;
  opacity: 0.8;
}

/* ============ پاصفحه ============ */

.site-footer {
  padding: 52px 0 24px;
  background: var(--ru-navy);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-ui);
}

body[data-theme="prestige"] .site-footer { border-top: 4px solid var(--ru-orange); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
}

.footer-brand strong { display: block; font-size: 14.5px; }
.footer-brand span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer p {
  max-width: 340px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
}

.site-footer h4 {
  margin: 0 0 14px;
  color: var(--ru-orange);
  font-size: 11px;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12.5px;
}
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

/* ============ واکنش‌گرا ============ */

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .header-actions { margin-inline-start: auto; margin-inline-end: 0; }
  .journal-layout,
  body[data-theme="prestige"] .journal-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  body[data-theme="prestige"] .journal-sidebar { order: 0; }
}

@media (max-width: 900px) {
  .journal-layout,
  body[data-theme="prestige"] .journal-layout { grid-template-columns: 1fr; }
  body[data-theme="prestige"] .journal-sidebar { order: 0; }
  .masthead-inner { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
  .masthead-cover .cover { width: 140px; padding: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 28px); }
  .header-actions .btn-ghost { display: none; }
  .header-inner { min-height: 70px; gap: 16px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 14px; }
  .masthead-inner { grid-template-columns: 1fr; gap: 22px; }
  .journal-masthead { padding: 38px 0; }
  .masthead-cover .cover { width: 120px; }
  .current-issue-card { grid-template-columns: 1fr; }
  .current-issue-card .cover { width: 110px; }
  .article-head { grid-template-columns: 1fr; }
  .article-actions { padding-top: 0; }
  .announcement { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   OJS 3.5 ADAPTATION
   Everything below styles markup that OJS itself generates
   (menus, forms, issue/article/archive/search pages, blocks) so it
   matches the design above. Colors, radii and fonts all come from
   the design tokens, so the three color schemes work everywhere.
   ============================================================ */

body { overflow-x: hidden; }
.pkp_screen_reader, .cmp_skip_to_content { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ru-orange); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ru-navy); }

/* skip links */
.rana-skip { position: absolute; top: 0; inset-inline-start: 0; z-index: 2000; }
.rana-skip a { position: absolute; inset-inline-start: -9999px; padding: 10px 16px; background: var(--ru-navy); color: #fff; font-family: var(--font-ui); font-weight: 700; }
.rana-skip a:focus { inset-inline-start: 8px; top: 8px; }

/* ---------- header / menus ---------- */
.site-nav { margin-inline-start: auto; margin-inline-end: 0; }
.site-nav a.active { color: var(--nav-active); }
.header-actions { margin-inline-start: auto; }
.site-nav + .header-actions { margin-inline-start: 0; }

.lang-switch { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lang-switch a { display: block; padding: 5px 10px; border: 1px solid var(--header-border); border-radius: var(--button-radius); font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--header-muted); }
.lang-switch a:hover, .lang-switch a.active { background: var(--journal-soft); border-color: var(--journal-accent); color: var(--journal-accent-ink); }
body[data-theme="prestige"] .lang-switch a:hover, body[data-theme="prestige"] .lang-switch a.active { background: rgba(255,255,255,.1); border-color: var(--ru-orange); color: var(--ru-orange); }

.user-nav ul, .journal-nav ul { margin: 0; padding: 0; list-style: none; }
.user-nav > ul { display: flex; align-items: center; gap: 10px; }
.user-nav li { position: relative; }
.user-nav > ul > li > a {
  display: inline-flex; align-items: center; padding: 10px 20px; border: 1px solid currentColor;
  border-radius: var(--button-radius); font-family: var(--font-ui); font-size: 13.5px; font-weight: 700;
  line-height: 1.2; color: var(--header-text); opacity: .85; white-space: nowrap;
}
.user-nav > ul > li > a:hover { opacity: 1; }
.user-nav > ul > li:last-child > a { background: var(--journal-accent); border-color: var(--journal-accent); color: var(--journal-on-accent); opacity: 1; }
body[data-theme="prestige"] .user-nav > ul > li:last-child > a { background: var(--ru-orange); border-color: var(--ru-orange); color: var(--ru-navy); }
.user-nav ul ul, .journal-nav ul ul {
  display: none; position: absolute; z-index: 200; top: 100%; inset-inline-start: 0; min-width: 210px;
  padding: 6px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
}
.user-nav li:hover > ul, .user-nav li:focus-within > ul,
.journal-nav li:hover > ul, .journal-nav li:focus-within > ul { display: block; }
.user-nav ul ul a, .journal-nav ul ul a {
  display: block; padding: 9px 12px; border: 0; border-radius: 4px; background: none;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--text); opacity: 1; white-space: nowrap;
}
.user-nav ul ul a:hover, .journal-nav ul ul a:hover { background: var(--journal-soft); color: var(--journal-accent-ink); }

.journal-nav { position: relative; }
.journal-nav .container { overflow: visible; }
.journal-nav .container > ul { display: flex; gap: 2px; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.journal-nav .container > ul::-webkit-scrollbar { display: none; }
.journal-nav .container > ul > li { position: relative; }
.journal-nav .container > ul > li > a {
  display: block; padding: 15px 16px; border-bottom: 3px solid transparent;
  color: var(--nav-text); font-family: var(--font-ui); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.journal-nav .container > ul > li > a:hover { color: var(--nav-active); }
.journal-nav .container > ul > li.current > a, .journal-nav a[aria-current="page"] { border-bottom-color: var(--journal-accent); color: var(--nav-active); }
body[data-theme="prestige"] .journal-nav .container > ul > li.current > a { border-bottom-color: var(--ru-orange); }
body[data-theme="horizon"] .journal-nav .container > ul > li > a { padding: 8px 16px; border: 0; border-radius: 999px; }
body[data-theme="horizon"] .journal-nav .container > ul > li > a:hover,
body[data-theme="horizon"] .journal-nav .container > ul > li.current > a { background: var(--journal-soft); }

/* masthead cover image (when an issue has a real cover) */
.masthead-cover .cover-image { width: 190px; max-width: 100%; border-radius: var(--radius); box-shadow: 0 24px 50px -20px rgba(0,0,0,.5); }
.journal-layout.is-full { grid-template-columns: minmax(0, 1fr); }
body[data-theme="prestige"] .journal-layout.is-full { grid-template-columns: minmax(0, 1fr); }
.journal-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ---------- generic page content ---------- */
.journal-main .page { font-size: 15px; }
.journal-main .page > h1, .journal-main .page_title, .journal-main h1.page_title {
  margin: 0 0 22px; font-family: var(--heading-font); font-size: 28px; line-height: 1.5; font-weight: 800; color: var(--text);
}
.journal-main h2 { font-family: var(--heading-font); font-size: 21px; font-weight: 800; line-height: 1.6; margin: 30px 0 12px; }
.journal-main h3 { font-family: var(--heading-font); font-size: 17px; font-weight: 700; line-height: 1.6; }
.journal-main p, .journal-main li { line-height: 1.95; }
.journal-main a:hover { text-decoration: underline; }
.journal-main table { width: 100%; border-collapse: collapse; }
.journal-main th, .journal-main td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.journal-main th { font-family: var(--font-ui); font-size: 12px; background: var(--surface-alt); }

.cmp_breadcrumbs { margin-bottom: 26px; font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.cmp_breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cmp_breadcrumbs li { display: inline-flex; gap: 8px; }
.cmp_breadcrumbs a { color: var(--muted); }
.cmp_breadcrumbs a:hover { color: var(--journal-accent-ink); }
.cmp_breadcrumbs .separator { opacity: .6; }
.cmp_breadcrumbs .separator::before { content: "/"; }
.cmp_breadcrumbs .separator span { display: none; }

.cmp_notification, .pkp_form_error, .cmp_notification.notice { padding: 14px 16px; border: 1px solid var(--line); border-inline-start: 3px solid var(--journal-accent); border-radius: var(--radius); background: var(--surface-alt); font-family: var(--font-ui); font-size: 13.5px; }
.pkp_form_error { border-color: #d9a1ad; background: #fdecef; color: #7a0a1f; margin-bottom: 18px; }

/* ---------- home page: reorder default sections to match the design ---------- */
.page_index_journal { display: flex; flex-direction: column; gap: 0; }
.page_index_journal > .current_issue { order: 1; margin-bottom: 42px; }
.page_index_journal > .cmp_announcements { order: 2; margin-bottom: 42px; }
.page_index_journal > .homepage_about, .page_index_journal > .additional_content { order: 3; margin-bottom: 42px; }
.page_index_journal .homepage_image { order: 0; margin-bottom: 30px; }
.page_index_journal .homepage_image img { width: 100%; border-radius: var(--radius); }
.page_index_journal .homepage_about > h2, .page_index_journal .current_issue > h2, .cmp_announcements > h2 {
  margin: 0 0 18px; padding-inline-start: 12px; border-inline-start: 4px solid var(--journal-accent); font-size: 22px;
}
.current_issue_title { margin: 0 0 14px; font-family: var(--font-ui); font-size: 13px; font-weight: 800; color: var(--journal-accent-ink); }
.page_index_journal .read_more, .obj_issue_toc .read_more { display: inline-block; margin-top: 14px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--journal-accent-ink); }

/* ---------- issue table of contents (home, current issue, archive item) ---------- */
.obj_issue_toc .heading {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: start;
  margin-bottom: 30px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--card-shadow);
}
.obj_issue_toc .heading:not(:has(.cover)) { grid-template-columns: minmax(0, 1fr); }
.obj_issue_toc .cover img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 14px 30px -16px rgba(0,0,0,.45); }
.obj_issue_toc .published, .obj_issue_toc .pub_id, .obj_issue_toc .description { font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.obj_issue_toc .description { margin-bottom: 8px; color: var(--text); font-family: var(--font-body); font-size: 14.5px; }
.obj_issue_toc .galleys, .obj_issue_toc .galleys_links { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.obj_issue_toc .sections .section > h2 { margin: 34px 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--journal-accent); font-size: 18px; }
.obj_issue_toc .current_issue_title { display: none; }
.obj_issue_toc .cmp_article_list, .cmp_article_list { margin: 0; padding: 0; list-style: none; }

/* ---------- article cards (summaries in issue, archive, search) ---------- */
.obj_article_summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .2s ease;
}
.obj_article_summary:hover { background: linear-gradient(270deg, transparent, var(--journal-soft), transparent); }
.obj_article_summary .cover { grid-column: 1 / -1; }
.obj_article_summary .cover img { max-width: 120px; border-radius: var(--radius); }
.obj_article_summary .title { grid-column: 1; margin: 0; font-family: var(--heading-font); font-size: 18.5px; font-weight: 700; line-height: 1.7; }
.obj_article_summary .title a { color: var(--text); }
.obj_article_summary .title a:hover { color: var(--journal-accent-ink); text-decoration: none; }
.obj_article_summary .meta { grid-column: 1; font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.obj_article_summary .authors { color: var(--text); font-weight: 600; }
.obj_article_summary .pages, .obj_article_summary .published { margin-top: 2px; font-size: 12px; }
.obj_article_summary .galleys_links { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.obj_article_summary .galleys_links li { margin: 0; }

/* galley buttons = the design's .pdf-link */
.obj_galley_link, a.obj_galley_link, .obj_galley_link.pdf, .galley_link {
  display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--journal-accent); border-radius: var(--button-radius);
  background: var(--journal-accent); color: var(--journal-on-accent) !important; font-family: var(--font-ui); font-size: 12.5px; font-weight: 800; line-height: 1.2;
}
.obj_galley_link:hover { filter: brightness(.92); text-decoration: none !important; }
.obj_galley_link.restricted, .obj_galley_link:not(.pdf) { background: transparent; color: var(--journal-accent-ink) !important; }

/* ---------- article page ---------- */
.obj_article_details .page_title { font-size: 26px; line-height: 1.7; }
.obj_article_details .subtitle { margin: -12px 0 18px; color: var(--muted); font-size: 17px; }
.obj_article_details .row { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; align-items: start; }
.obj_article_details .main_entry { min-width: 0; }
.obj_article_details .entry_details { display: flex; flex-direction: column; gap: 16px; }
.obj_article_details .item { margin-bottom: 22px; }
.obj_article_details .item > h2, .obj_article_details .item > h3, .obj_article_details .entry_details .label { margin: 0 0 8px; font-family: var(--font-ui); font-size: 13px; font-weight: 800; color: var(--journal-accent-ink); }
.obj_article_details .authors { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.obj_article_details .authors .name { font-weight: 700; }
.obj_article_details .authors .affiliation, .obj_article_details .authors .orcid { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); }
.obj_article_details .abstract { padding: 20px 22px; border: 1px solid var(--line); border-inline-start: 3px solid var(--journal-accent); border-radius: var(--radius); background: var(--surface); }
.obj_article_details .keywords .value, .obj_article_details .keywords span { font-size: 13px; }
.obj_article_details .entry_details > div, .obj_article_details .entry_details .item { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.obj_article_details .galleys_links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.obj_article_details .doi a, .obj_article_details .pub_id a { word-break: break-all; font-family: var(--font-ui); font-size: 12.5px; direction: ltr; unicode-bidi: plaintext; }
.pkp_screen_reader + .obj_article_details { margin-top: 0; }

/* ---------- archive ---------- */
.page_issue_archive .issues_archive { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.obj_issue_summary { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--card-shadow); }
.obj_issue_summary .cover img { width: 100%; border-radius: 4px; }
.obj_issue_summary .title { font-family: var(--heading-font); font-size: 16px; font-weight: 700; }
.obj_issue_summary .series, .obj_issue_summary .description { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); }

/* ---------- announcements ---------- */
.obj_announcement_summary {
  margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--line); border-inline-start: 3px solid var(--journal-accent);
  border-radius: var(--radius); background: var(--surface);
}
.obj_announcement_summary h2, .obj_announcement_summary h3, .obj_announcement_summary h4 { margin: 0 0 6px; font-family: var(--heading-font); font-size: 17px; font-weight: 700; }
.obj_announcement_summary h2 a, .obj_announcement_summary h3 a, .obj_announcement_summary h4 a { color: var(--text); }
.obj_announcement_summary .date { font-family: var(--font-ui); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.obj_announcement_summary .summary { font-size: 14px; color: var(--muted); }
.cmp_announcements .more ul { margin: 0; padding: 0; list-style: none; }

/* ---------- sidebar blocks installed by the journal manager ---------- */
.pkp_block { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--card-shadow); }
body[data-theme="prestige"] .pkp_block { border-top: 2px solid rgba(244,123,32,.8); }
.pkp_block .title { display: block; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--font-ui); font-size: 12px; font-weight: 800; }
.pkp_block ul { margin: 0; padding: 0; list-style: none; }
.pkp_block li { padding: 5px 0; font-size: 13.5px; }
.pkp_block .content > *:last-child { margin-bottom: 0; }
.pkp_block img { max-width: 100%; height: auto; }
.footer-custom { font-size: 13px; }
.footer-custom p { margin: 0 0 8px; }
.footer-address { margin-top: 10px; }
.site-footer .footer-bottom a { color: inherit; opacity: .8; }

/* ---------- pagination ---------- */
.cmp_pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; font-family: var(--font-ui); font-size: 13px; }
.cmp_pagination a, .cmp_pagination .current { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--button-radius); background: var(--surface); }
.cmp_pagination .current { background: var(--journal-accent); border-color: var(--journal-accent); color: var(--journal-on-accent); }

/* ============================================================
   FORMS (all OJS forms) + SIGN-IN / REGISTER
   ============================================================ */
.cmp_form fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.cmp_form legend { padding: 0; margin-bottom: 14px; font-family: var(--font-ui); font-size: 14px; font-weight: 800; color: var(--journal-accent-ink); }
.cmp_form label, .cmp_form .label { font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--text); }
.cmp_form .required { color: #b3122f; margin-inline-start: 3px; }
.cmp_form input[type="text"], .cmp_form input[type="email"], .cmp_form input[type="password"], .cmp_form input[type="tel"],
.cmp_form input[type="url"], .cmp_form input[type="number"], .cmp_form select, .cmp_form textarea,
.search_input, .page_search input[type="text"] {
  width: 100%; padding: 11px 14px; border: 1px solid #cfc6c9; border-radius: var(--radius); background: #fff;
  font-family: var(--font-ui); font-size: 14px; line-height: 1.5; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
.cmp_form input:focus, .cmp_form select:focus, .cmp_form textarea:focus { outline: none; border-color: var(--journal-accent); box-shadow: 0 0 0 3px var(--journal-glow); }
.cmp_form label > .label { display: block; margin-bottom: 6px; }
.cmp_form .fields > div, .cmp_form fieldset > div { margin-bottom: 16px; }
.cmp_form .checkbox label, .cmp_form .optin label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.cmp_form input[type="checkbox"], .cmp_form input[type="radio"] { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--journal-accent); flex: 0 0 auto; }
.cmp_form .buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.cmp_form button.submit, .cmp_form .submit, .cmp_form input[type="submit"], .cmp_form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; border: 1px solid var(--journal-accent); border-radius: var(--button-radius);
  background: var(--journal-accent); color: var(--journal-on-accent); font-family: var(--font-ui); font-size: 14px; font-weight: 800; cursor: pointer;
}
.cmp_form button.submit:hover, .cmp_form button[type="submit"]:hover { filter: brightness(.92); }

.auth-page { display: flex; justify-content: center; padding: 18px 0 30px; }
.auth-card { width: 100%; max-width: 460px; padding: 34px 34px 28px; border: 1px solid var(--line); border-top: 4px solid var(--journal-accent); border-radius: var(--radius); background: var(--surface); box-shadow: 0 30px 60px -36px rgba(43, 36, 39,.4); }
.auth-page-wide .auth-card { max-width: 780px; }
.auth-head { margin-bottom: 24px; text-align: center; }
.auth-head h1 { margin: 0 0 6px; font-family: var(--heading-font); font-size: 26px; font-weight: 800; color: var(--text); }
.auth-head p { margin: 0; font-family: var(--font-ui); font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.auth-notice { margin-bottom: 18px; padding: 12px 14px; border-radius: var(--radius); background: var(--journal-soft); font-family: var(--font-ui); font-size: 13px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 7px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; }
.auth-field .required { color: #b3122f; margin-inline-start: 3px; }
.auth-field input { width: 100%; padding: 12px 14px; border: 1px solid #cfc6c9; border-radius: var(--radius); background: #fff; font-family: var(--font-ui); font-size: 15px; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.auth-field input:focus { outline: none; border-color: var(--journal-accent); box-shadow: 0 0 0 3px var(--journal-glow); }
.auth-field input[type="text"], .auth-field input[type="password"] { direction: ltr; text-align: start; }
html[dir="rtl"] .auth-field input[type="text"], html[dir="rtl"] .auth-field input[type="password"] { text-align: right; }
.auth-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 13px; font-weight: 500; cursor: pointer; }
.auth-check input { width: 17px; height: 17px; accent-color: var(--journal-accent); }
.auth-submit { padding: 13px 20px; font-size: 14.5px; }
.auth-alt { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-family: var(--font-ui); font-size: 13.5px; color: var(--muted); }
.auth-alt a { font-weight: 800; }

/* registration form (OJS component) inside the card: two columns where it makes sense */
.page_register .cmp_form > h1, .page_register h1.page_title { display: none; }
.page_register fieldset.identity .fields, .page_register fieldset.login .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.page_register fieldset .fields > .full, .page_register fieldset .consent, .page_register .country, .page_register .email { grid-column: 1 / -1; }
.page_register fieldset + fieldset { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.page_register .buttons .submit { min-width: 160px; }
.page_register .buttons a { font-family: var(--font-ui); font-size: 13.5px; font-weight: 700; }
.page_lost_password .cmp_form, .page_change_password .cmp_form { max-width: 460px; margin: 0 auto; padding: 30px; border: 1px solid var(--line); border-top: 4px solid var(--journal-accent); border-radius: var(--radius); background: var(--surface); }

/* ---------- search ---------- */
.page_search .search_input, .page_search .cmp_form { margin-bottom: 20px; }
.page_search .search_results { margin: 0; padding: 0; list-style: none; }

/* ---------- RTL / LTR safety ---------- */
html[dir="ltr"] .article-card:hover, html[dir="ltr"] .obj_article_summary:hover { background: linear-gradient(90deg, transparent, var(--journal-soft), transparent); }
.obj_article_details .doi a, .journal-main [dir="ltr"] { unicode-bidi: plaintext; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .obj_article_details .row { grid-template-columns: minmax(0, 1fr); }
  .site-nav { display: none; }
  .site-nav + .header-actions, .header-actions { margin-inline-start: auto; }
}
@media (max-width: 680px) {
  .obj_issue_toc .heading { grid-template-columns: minmax(0, 1fr); }
  .obj_issue_toc .cover { max-width: 140px; }
  .obj_article_summary { grid-template-columns: minmax(0, 1fr); }
  .obj_article_summary .galleys_links { grid-column: 1; grid-row: auto; }
  .page_register fieldset.identity .fields, .page_register fieldset.login .fields { grid-template-columns: minmax(0, 1fr); }
  .auth-card { padding: 26px 20px 22px; }
  .user-nav > ul > li > a { padding: 8px 12px; font-size: 12.5px; }
  .lang-switch a { padding: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ============================================================
   REGISTER PAGE: scoped to the page wrapper, so it works no matter
   which classes the OJS 3.5 registration form uses internally.
   ============================================================ */
.page_register .auth-card form { margin: 0; }
.page_register .auth-card fieldset {
  display: block; width: 100%; min-width: 0; margin: 0 0 26px; padding: 0; border: 0; background: none; float: none;
}
.page_register .auth-card fieldset + fieldset { margin-top: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.page_register .auth-card legend {
  display: block; float: none; width: 100%; margin: 0 0 18px; padding: 0 0 10px; border-bottom: 2px solid var(--journal-accent);
  font-family: var(--font-ui); font-size: 15px; font-weight: 800; color: var(--journal-accent-ink);
}
/* field grid: 2 columns, single full-width fallback for unknown fields */
.page_register .auth-card fieldset > .fields,
.page_register .auth-card fieldset:not(:has(> .fields)) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start;
}
.page_register .auth-card fieldset:not(:has(> .fields)) > legend { grid-column: 1 / -1; }
.page_register .auth-card fieldset > .fields > *,
.page_register .auth-card fieldset:not(:has(> .fields)) > *:not(legend) {
  grid-column: 1 / -1; float: none; width: auto; margin: 0; padding: 0; min-width: 0;
}
.page_register .auth-card :is(.given_name, .family_name, .password, .password2, .reviewer_interests) { grid-column: auto; }
/* labels stack above their control */
.page_register .auth-card label { display: block; margin: 0; font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.6; }
.page_register .auth-card label > span:not(.pkp_screen_reader) { display: block; margin-bottom: 7px; }
.page_register .auth-card .required, .page_register .auth-card label span[aria-hidden="true"] { color: #b3122f; margin-inline-start: 3px; display: inline; }
/* controls */
.page_register .auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
.page_register .auth-card select, .page_register .auth-card textarea {
  display: block; width: 100%; height: auto; margin: 0; padding: 12px 14px; border: 1px solid #cfc6c9; border-radius: var(--radius);
  background: #fff; font-family: var(--font-ui); font-size: 15px; line-height: 1.5; color: var(--text);
  box-sizing: border-box; transition: border-color .15s ease, box-shadow .15s ease;
}
.page_register .auth-card select { appearance: auto; min-height: 46px; }
.page_register .auth-card input:focus, .page_register .auth-card select:focus, .page_register .auth-card textarea:focus {
  outline: none; border-color: var(--journal-accent); box-shadow: 0 0 0 3px var(--journal-glow);
}
.page_register .auth-card :is(input[type="email"], input[name="username"], input[type="password"], input[type="url"], input[type="tel"]) { direction: ltr; text-align: start; }
html[dir="rtl"] .page_register .auth-card :is(input[type="email"], input[name="username"], input[type="password"]) { text-align: right; }
/* checkboxes (roles, consent) */
.page_register .auth-card label:has(> input[type="checkbox"]), .page_register .auth-card label:has(> input[type="radio"]) {
  display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13.5px;
}
.page_register .auth-card label:has(> input[type="checkbox"]) > span, .page_register .auth-card label:has(> input[type="radio"]) > span { display: inline; margin: 0; }
.page_register .auth-card input[type="checkbox"], .page_register .auth-card input[type="radio"] { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--journal-accent); }
.page_register .auth-card .consent, .page_register .auth-card .context_roles, .page_register .auth-card .optin { font-size: 13.5px; line-height: 1.9; }
/* submit row */
.page_register .auth-card .buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.page_register .auth-card button[type="submit"], .page_register .auth-card .submit {
  padding: 13px 34px; border: 1px solid var(--journal-accent); border-radius: var(--button-radius); background: var(--journal-accent);
  color: var(--journal-on-accent); font-family: var(--font-ui); font-size: 14.5px; font-weight: 800; cursor: pointer;
}
.page_register .auth-card button[type="submit"]:hover { filter: brightness(.92); }
.page_register .auth-card .buttons a { font-family: var(--font-ui); font-size: 13.5px; font-weight: 700; }
@media (max-width: 680px) {
  .page_register .auth-card fieldset > .fields,
  .page_register .auth-card fieldset:not(:has(> .fields)) { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   FIXES: dropdown menus + article page overlapping the sidebar
   ============================================================ */
/* A scrolling (overflow-x:auto) list clips absolutely-positioned submenus. Wrap instead of scroll. */
.journal-nav, .journal-nav .container, .journal-nav .container > ul { overflow: visible !important; }
.journal-nav .container > ul { flex-wrap: wrap; }
.journal-nav .container > ul > li > a, .site-nav a { white-space: nowrap; }
.journal-nav li.has-submenu > a::after, .journal-nav li > a[aria-haspopup="true"]::after { content: " ▾"; font-size: 10px; }
.journal-nav ul ul { top: calc(100% - 4px); }
.journal-nav li:hover > ul, .journal-nav li:focus-within > ul, .journal-nav li.open > ul, .journal-nav a[aria-expanded="true"] + ul { display: block !important; }
.journal-nav ul ul a { border: 0 !important; background: none !important; }

/* Keep the content column inside its grid cell, above nothing and below the sidebar. */
.journal-layout > * { min-width: 0; }
.journal-main { position: relative; z-index: 0; overflow-wrap: anywhere; }
.journal-sidebar { position: relative; z-index: 1; }
.journal-main .page, .journal-main .obj_article_details, .journal-main .obj_issue_toc, .journal-main .obj_issue_summary {
  position: static !important; float: none !important; width: auto !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; left: auto !important; right: auto !important;
}
.journal-main .obj_article_details::before, .journal-main .obj_article_details::after,
.journal-main .obj_article_details .row::before, .journal-main .obj_article_details .row::after { content: none !important; display: none !important; }
.journal-main .obj_article_details .row { display: grid !important; grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.journal-main .obj_article_details .main_entry, .journal-main .obj_article_details .entry_details {
  position: static !important; float: none !important; width: auto !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; left: auto !important; right: auto !important;
}
.journal-main .obj_article_details .page_title { width: auto !important; margin: 0 0 22px !important; padding: 0 0 18px !important; border-bottom: 1px solid var(--line); }
.journal-main .obj_article_details .abstract { margin-inline: 0 !important; }
.journal-main .obj_article_details img, .journal-main .obj_article_details iframe, .journal-main .obj_article_details table { max-width: 100%; }
@media (max-width: 900px) {
  .journal-main .obj_article_details .row { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   REFERENCES + mixed-language text (English citations inside an RTL page)
   ============================================================ */
.obj_article_details .item.references { padding: 0; border: 0; background: none; }
.obj_article_details .item.references > h2, .obj_article_details .item.references > .label {
  margin: 26px 0 14px; padding-inline-start: 12px; border-inline-start: 4px solid var(--journal-accent);
  font-family: var(--heading-font); font-size: 19px; font-weight: 800; color: var(--text);
}
.obj_article_details .item.references .value { padding: 0; border: 0; background: none; }
.obj_article_details .item.references .value p, .obj_article_details .item.references li {
  margin: 0 0 6px; padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-family: var(--font-ui); font-size: 14px; line-height: 1.85; color: var(--text);
  unicode-bidi: plaintext; text-align: start; overflow-wrap: anywhere;
}
.obj_article_details .item.references .value p:last-child { border-bottom: 0; }
.obj_article_details .item.references a { direction: ltr; unicode-bidi: embed; overflow-wrap: anywhere; }
.obj_article_details .abstract p { unicode-bidi: plaintext; text-align: start; }

/* admin-managed indexing logos */
.indexing-logo img { width: auto; max-width: 100%; max-height: 48px; object-fit: contain; margin-inline: auto; }
.indexing-badge { display: grid; place-items: center; width: 48px; height: 48px; margin-inline: auto; border-radius: 10px; font-family: var(--font-ui); font-size: 13px; font-weight: 800; letter-spacing: .02em; direction: ltr; }
.indexing-item { word-break: break-word; }

/* abstract toggle inside OJS article cards (reuses the design's .abstract-toggle / .article-abstract) */
.obj_article_summary .article-abstract { grid-column: 1 / -1; }
.obj_article_summary .galleys_links li { list-style: none; }
.obj_article_summary .abstract-inner { margin-top: 12px; }
.obj_article_summary .abstract-inner p { font-size: 14.5px; line-height: 2; unicode-bidi: plaintext; text-align: start; }
.obj_article_summary .abstract-status { color: var(--muted); font-family: var(--font-ui); font-size: 13px; }

/* ============================================================
   PREMIUM LAYER
   Refined depth, spacing and typography on top of the base design.
   Uses only the design tokens, so all three colour schemes keep working.
   ============================================================ */
:root { --rana-lift: 0 1px 2px rgba(30, 24, 26,.05), 0 22px 44px -28px rgba(43, 36, 39,.38); --rana-lift-hover: 0 2px 4px rgba(30, 24, 26,.06), 0 30px 56px -26px rgba(43, 36, 39,.5); --rana-ease: cubic-bezier(.2,.7,.2,1); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--journal-accent); color: var(--journal-on-accent); }
html { scroll-behavior: smooth; }
.journal-main { font-size: 15.5px; }

/* header */
.site-header { box-shadow: 0 1px 0 var(--header-border), 0 18px 34px -30px rgba(43, 36, 39,.55); }
.brand-logo { filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.site-nav a { position: relative; transition: color .2s var(--rana-ease); }
.site-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--journal-accent); transform: scaleX(0); transition: transform .25s var(--rana-ease); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

/* buttons */
.btn { transition: transform .18s var(--rana-ease), box-shadow .2s var(--rana-ease), filter .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background-image: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 60%); box-shadow: 0 10px 20px -12px var(--journal-accent); }
.btn-primary:hover { box-shadow: 0 14px 26px -12px var(--journal-accent); }

/* masthead */
.journal-masthead { position: relative; overflow: hidden; isolation: isolate; }
.journal-masthead::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 90% at 88% -10%, rgba(255,255,255,.14), transparent 62%), radial-gradient(40% 70% at 6% 110%, rgba(244,123,32,.10), transparent 66%); }
.journal-masthead::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(244,123,32,.55), transparent); }
.masthead-copy h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.45; letter-spacing: -.01em; }
.masthead-cover .cover, .masthead-cover .cover-image { box-shadow: 0 40px 60px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.12); transform: perspective(1000px) rotateY(7deg); transition: transform .5s var(--rana-ease); }
html[dir="ltr"] .masthead-cover .cover, html[dir="ltr"] .masthead-cover .cover-image { transform: perspective(1000px) rotateY(-7deg); }
.masthead-cover .cover:hover, .masthead-cover .cover-image:hover { transform: perspective(1000px) rotateY(0) translateY(-4px); }
.meta-pill { backdrop-filter: blur(6px); }

/* journal navigation */
.journal-nav { box-shadow: 0 14px 28px -26px rgba(43, 36, 39,.6); }
.journal-nav .container > ul > li > a { transition: color .2s, background .2s, border-color .2s; }

/* sidebar */
.sidebar-card, .pkp_block { border-radius: 16px; box-shadow: var(--rana-lift); transition: box-shadow .3s var(--rana-ease), transform .3s var(--rana-ease); }
.sidebar-card:hover, .pkp_block:hover { box-shadow: var(--rana-lift-hover); }
.sidebar-card h3 { position: relative; padding-inline-start: 14px; }
.sidebar-card h3::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 4px; height: 1.1em; border-radius: 3px; transform: translateY(-50%); background: var(--journal-accent); }
.indexing-item { transition: transform .2s var(--rana-ease), box-shadow .2s, border-color .2s; }
.indexing-item:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -16px rgba(43, 36, 39,.55); border-color: var(--journal-accent); }

/* section headings */
.page_index_journal .homepage_about > h2, .page_index_journal .current_issue > h2, .cmp_announcements > h2 { font-size: 24px; letter-spacing: -.005em; }

/* ---------- CURRENT ISSUE: premium issue panel ---------- */
.page_issue > h1, .page_issue .page_title, .page_issue_archive .page_title {
  margin: 0 0 26px; padding-bottom: 16px; font-size: clamp(26px, 3vw, 34px); line-height: 1.5; border-bottom: 1px solid var(--line); position: relative;
}
.page_issue > h1::after, .page_issue .page_title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; width: 84px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--journal-accent), var(--ru-orange)); }

.obj_issue_toc .heading {
  position: relative; overflow: hidden; grid-template-columns: 210px minmax(0, 1fr); gap: 38px; align-items: center; padding: 34px 36px; border: 1px solid var(--line); border-radius: 22px;
  background: radial-gradient(70% 120% at 100% 0%, var(--journal-soft), transparent 60%), linear-gradient(180deg, var(--surface), var(--surface-alt));
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 34px 64px -40px rgba(43, 36, 39,.55);
}
html[dir="ltr"] .obj_issue_toc .heading { background: radial-gradient(70% 120% at 0% 0%, var(--journal-soft), transparent 60%), linear-gradient(180deg, var(--surface), var(--surface-alt)); }
.obj_issue_toc .heading::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 5px; background: linear-gradient(90deg, var(--journal-accent), var(--ru-orange) 55%, var(--journal-accent)); }
.obj_issue_toc .heading .cover { display: block; }
.obj_issue_toc .heading .cover img { width: 100%; border-radius: 6px; box-shadow: 0 34px 50px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.07); transform: perspective(900px) rotateY(6deg); transition: transform .5s var(--rana-ease); }
html[dir="ltr"] .obj_issue_toc .heading .cover img { transform: perspective(900px) rotateY(-6deg); }
.obj_issue_toc .heading .cover:hover img { transform: perspective(900px) rotateY(0) translateY(-4px); }
.obj_issue_toc .heading .description { margin: 0 0 14px; font-size: 15.5px; line-height: 2.05; color: var(--text); }
.obj_issue_toc .heading .published, .obj_issue_toc .heading .pub_id { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; margin-inline-end: 8px; padding: 7px 14px; border-radius: 999px; background: var(--journal-soft); color: var(--journal-accent-ink); font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; }
.obj_issue_toc .heading .published .label, .obj_issue_toc .heading .pub_id .type { opacity: .75; font-weight: 600; }
.obj_issue_toc .heading .galleys, .obj_issue_toc .heading .galleys_links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.obj_issue_toc .heading:not(:has(.cover)) { grid-template-columns: minmax(0, 1fr); }

/* section headings inside the issue */
.obj_issue_toc .sections { margin-top: 46px; }
.obj_issue_toc .sections .section > h2 { display: flex; align-items: center; gap: 14px; margin: 50px 0 14px; padding: 0; border: 0; font-size: 20px; font-weight: 800; color: var(--text); }
.obj_issue_toc .sections .section > h2::before { content: ""; flex: 0 0 auto; width: 11px; height: 11px; border-radius: 3px; background: var(--journal-accent); transform: rotate(45deg); }
.obj_issue_toc .sections .section > h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
html[dir="rtl"] .obj_issue_toc .sections .section > h2::after { background: linear-gradient(270deg, var(--line), transparent); }
.obj_issue_toc .sections .section:first-child > h2 { margin-top: 0; }

/* DOI chip + abstract panel on cards */
.card-doi { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-alt); color: var(--journal-accent-ink); font-family: var(--font-ui); font-size: 12px; font-weight: 600; transition: border-color .2s, background .2s; }
.card-doi:hover { border-color: var(--journal-accent); background: var(--journal-soft); text-decoration: none !important; }
.card-doi-label { padding: 1px 7px; border-radius: 999px; background: var(--journal-accent); color: var(--journal-on-accent); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.abstract-toggle { transition: background .2s, border-color .2s, transform .18s var(--rana-ease); }
.abstract-toggle:hover { transform: translateY(-1px); }
.obj_article_summary .abstract-inner { padding: 20px 22px; border: 1px solid var(--line); border-inline-start: 3px solid var(--journal-accent); border-radius: 14px; background: linear-gradient(180deg, var(--surface-alt), var(--surface)); }
.obj_article_summary .abstract-inner h4 { margin: 0 0 10px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 800; color: var(--journal-accent-ink); letter-spacing: .02em; }
.abstract-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.abstract-more { font-family: var(--font-ui); font-size: 13px; font-weight: 800; color: var(--journal-accent-ink); }

/* ---------- article page: stats + DOI card ---------- */
.rana-meta-card { padding: 0 !important; overflow: hidden; border: 1px solid var(--line) !important; border-radius: 16px !important; background: var(--surface) !important; box-shadow: var(--rana-lift); }
.rana-meta-card h3 { margin: 0; padding: 14px 18px; background: linear-gradient(135deg, var(--ru-navy), color-mix(in srgb, var(--ru-navy) 70%, var(--journal-accent))); color: #fff; font-family: var(--font-ui); font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.rana-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rana-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 8px; text-align: center; }
.rana-stat + .rana-stat { border-inline-start: 1px solid var(--line); }
.rana-stat strong { font-family: var(--font-ui); font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--journal-accent-ink); }
.rana-stat span { font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--muted); }
.rana-doi { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.rana-doi-label { padding: 2px 9px; border-radius: 999px; background: var(--journal-accent); color: var(--journal-on-accent); font-family: var(--font-ui); font-size: 11px; font-weight: 800; }
.rana-doi-link { min-width: 0; font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; word-break: break-all; color: var(--journal-accent-ink); }
.rana-has-doi .item.doi, .rana-has-doi .entry_details .doi { display: none; }
.obj_article_details .abstract { box-shadow: var(--rana-lift); border-radius: 16px; }
.obj_article_details .authors .name { font-size: 16px; }

/* announcements, archive, forms */
.obj_announcement_summary, .obj_issue_summary { border-radius: 16px; box-shadow: var(--rana-lift); transition: transform .3s var(--rana-ease), box-shadow .3s var(--rana-ease); }
.obj_announcement_summary:hover, .obj_issue_summary:hover { transform: translateY(-2px); box-shadow: var(--rana-lift-hover); }
.auth-card { border-radius: 22px; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 40px 70px -40px rgba(43, 36, 39,.55); }

/* footer */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--journal-accent), var(--ru-orange), var(--journal-accent)); }

@media (max-width: 900px) {
  .obj_issue_toc .heading { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 24px; }
  .obj_issue_toc .heading .cover { max-width: 190px; }
}
@media (max-width: 680px) {
  .rana-stat strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .masthead-cover .cover, .masthead-cover .cover-image, .obj_issue_toc .heading .cover img { transform: none !important; }
}

/* ============================================================
   ROUND: bigger issue cover, visible register button, justified abstract, stat chips
   ============================================================ */
/* larger issue cover (current issue page, home, archive item) */
.obj_issue_toc .heading { grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: 44px; align-items: start; }
.obj_issue_toc .heading .cover { width: 100%; max-width: 330px; margin: 0; }
.obj_issue_toc .heading .cover img { width: 100%; max-width: none; height: auto; min-height: 280px; object-fit: cover; }
.masthead-cover .cover-image { width: 260px; }
.masthead-cover .cover { width: 230px; }
@media (max-width: 900px) { .obj_issue_toc .heading { grid-template-columns: minmax(0, 1fr); } .obj_issue_toc .heading .cover { max-width: 260px; margin-inline: auto; } }

/* registration: the submit button must always be visible */
.page_register .auth-card form button[type="submit"], .page_register .auth-card form input[type="submit"], .page_register .auth-card form .submit, .page_register .rana-submit {
  display: inline-flex !important; visibility: visible !important; opacity: 1 !important; position: static !important; width: auto !important; height: auto !important; clip: auto !important; overflow: visible !important;
  align-items: center; justify-content: center; min-width: 200px; padding: 14px 40px !important; border: 1px solid var(--journal-accent) !important; border-radius: var(--button-radius) !important;
  background: var(--journal-accent) !important; color: var(--journal-on-accent) !important; font-family: var(--font-ui) !important; font-size: 15px !important; font-weight: 800 !important; line-height: 1.3 !important; cursor: pointer;
  box-shadow: 0 12px 22px -14px var(--journal-accent);
}
body[data-theme="prestige"] .page_register .auth-card form button[type="submit"], body[data-theme="prestige"] .page_register .rana-submit { background: var(--ru-orange) !important; border-color: var(--ru-orange) !important; color: var(--ru-navy) !important; }
.page_register .auth-card form .buttons { display: flex !important; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }

/* justified abstracts */
.abstract-text, .abstract-text p, .obj_article_summary .abstract-inner p,
.obj_article_details .abstract, .obj_article_details .abstract p, .obj_article_details .item.abstract p {
  text-align: justify !important; text-justify: inter-word; text-align-last: start; hyphens: auto; line-height: 2.05;
}

/* views / downloads / DOI chips on article cards */
.card-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.card-chips .card-doi { margin-top: 0; }
.card-stat { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: var(--journal-soft); color: var(--journal-accent-ink); font-family: var(--font-ui); font-size: 12px; font-weight: 700; }
.card-stat-num { font-weight: 800; font-size: 13px; direction: ltr; }
.card-stat-label { opacity: .8; font-weight: 600; }
.card-stat-views::before { content: "👁"; font-size: 12px; filter: grayscale(1); opacity: .7; }
.card-stat-downloads::before { content: "⬇"; font-size: 12px; opacity: .7; }


/* ============================================================
   COVERS (professional), issue panel layout, register area
   ============================================================ */
/* designed cover: used on the home masthead and for issues without a cover image */
.rana-cover {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 14px;
  width: 100%; max-width: 300px; aspect-ratio: 3 / 4; padding: 30px 22px 26px; text-align: center; color: #fff; overflow: hidden;
  border-radius: 6px 14px 14px 6px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.20), transparent 62%), linear-gradient(160deg, var(--ru-navy) 0%, color-mix(in srgb, var(--ru-navy) 50%, var(--journal-accent)) 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.14), 0 34px 48px -24px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08);
}
html[dir="rtl"] .rana-cover { border-radius: 14px 6px 6px 14px; }
.rana-cover::before { content: ""; position: absolute; inset: 12px; z-index: -1; border: 1px solid rgba(244,123,32,.55); border-radius: 4px; pointer-events: none; }
.rana-cover::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 9%; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.10) 60%, transparent); }
html[dir="rtl"] .rana-cover::after { background: linear-gradient(270deg, rgba(0,0,0,.28), rgba(255,255,255,.10) 60%, transparent); }
.rana-cover-top { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rana-cover-logo { width: 52px; height: 52px; padding: 4px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 8px 16px -8px rgba(0,0,0,.5); }
.rana-cover-uni { font-family: var(--font-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; opacity: .9; }
.rana-cover-mid { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rana-cover-acronym { max-width: 100%; font-family: var(--font-ui); font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: .05em; color: var(--ru-orange); direction: ltr; overflow-wrap: anywhere; text-shadow: 0 6px 18px rgba(0,0,0,.35); }
.rana-cover-acronym::after { content: ""; display: block; width: 46px; height: 2px; margin: 12px auto 0; border-radius: 2px; background: rgba(244,123,32,.7); }
.rana-cover-title { font-family: var(--heading-font); font-size: 14.5px; font-weight: 700; line-height: 1.8; }
.rana-cover-bottom { min-height: 28px; }
.rana-cover-issue { display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.14); font-family: var(--font-ui); font-size: 11.5px; font-weight: 700; line-height: 1.5; backdrop-filter: blur(4px); }
.masthead-cover .rana-cover, .masthead-cover .cover-image { width: 250px; max-width: 100%; transform: none !important; }
.masthead-cover .cover-image { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px 12px 12px 6px; }
html[dir="rtl"] .masthead-cover .cover-image { border-radius: 12px 6px 6px 12px; }

/* real issue cover image: clean book-style frame, no tilt */
.obj_issue_toc .heading { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 40px; align-items: start; }
.obj_issue_toc .heading > .cover, .obj_issue_toc .heading > .rana-cover { grid-column: 1; grid-row: 1 / span 20; align-self: start; }
.obj_issue_toc .heading > *:not(.cover):not(.rana-cover) { grid-column: 2; }
.obj_issue_toc .heading:not(:has(.cover, .rana-cover)) { grid-template-columns: minmax(0, 1fr); }
.obj_issue_toc .heading:not(:has(.cover, .rana-cover)) > * { grid-column: 1; }
.obj_issue_toc .heading > .cover { position: relative; display: block; width: 100%; max-width: 300px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px 12px 12px 6px; border: 1px solid rgba(0,0,0,.1); background: var(--surface-alt);
  box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 30px 44px -22px rgba(0,0,0,.5); transition: transform .35s var(--rana-ease), box-shadow .35s var(--rana-ease); }
html[dir="rtl"] .obj_issue_toc .heading > .cover { border-radius: 12px 6px 6px 12px; }
.obj_issue_toc .heading > .cover:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 38px 52px -22px rgba(0,0,0,.55); }
.obj_issue_toc .heading > .cover img { display: block; width: 100%; height: 100%; min-height: 0; max-width: none; object-fit: cover; transform: none !important; box-shadow: none; border-radius: 0; }
.obj_issue_toc .heading > .cover::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 8%; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.12) 55%, transparent); }
html[dir="rtl"] .obj_issue_toc .heading > .cover::after { background: linear-gradient(270deg, rgba(0,0,0,.22), rgba(255,255,255,.12) 55%, transparent); }
@media (max-width: 900px) {
  .obj_issue_toc .heading { grid-template-columns: minmax(0, 1fr); }
  .obj_issue_toc .heading > .cover, .obj_issue_toc .heading > .rana-cover, .obj_issue_toc .heading > *:not(.cover):not(.rana-cover) { grid-column: 1; grid-row: auto; }
  .obj_issue_toc .heading > .cover, .obj_issue_toc .heading > .rana-cover { max-width: 260px; margin-inline: auto; }
}

/* register: safety-net button row */
.rana-register-extra { display: flex; justify-content: center; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.rana-register-extra .rana-submit { min-width: 220px; }

/* indexing: favicon fallback + logos */
.indexing-fav { width: 40px; height: 40px; object-fit: contain; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line); margin-inline: auto; display: block; }

/* ============================================================
   ROUND: compact issue card, justified abstract, references card
   ============================================================ */
/* smaller current-issue card */
.obj_issue_toc .heading { grid-template-columns: minmax(150px, 185px) minmax(0, 1fr); gap: 26px; padding: 22px 26px; border-radius: 16px; align-items: center; }
.obj_issue_toc .heading > .cover, .obj_issue_toc .heading > .rana-cover { max-width: 185px; }
.obj_issue_toc .heading > .cover, .obj_issue_toc .heading > .rana-cover { grid-row: 1 / span 20; align-self: start; }
.obj_issue_toc .heading .description { font-size: 14.5px; line-height: 1.95; margin-bottom: 10px; }
.obj_issue_toc .heading .published, .obj_issue_toc .heading .pub_id { padding: 5px 12px; font-size: 12px; margin-bottom: 6px; }
.obj_issue_toc .heading .galleys, .obj_issue_toc .heading .galleys_links { margin-top: 10px; }
.obj_issue_toc .heading::before { height: 4px; }
.obj_issue_toc .heading > .rana-cover { padding: 18px 14px 16px; gap: 10px; border-radius: 4px 10px 10px 4px; }
html[dir="rtl"] .obj_issue_toc .heading > .rana-cover { border-radius: 10px 4px 4px 10px; }
.obj_issue_toc .heading > .rana-cover::before { inset: 8px; }
.obj_issue_toc .heading .rana-cover-logo { width: 36px; height: 36px; padding: 3px; }
.obj_issue_toc .heading .rana-cover-uni { font-size: 10px; }
.obj_issue_toc .heading .rana-cover-acronym { font-size: 26px; }
.obj_issue_toc .heading .rana-cover-acronym::after { width: 30px; margin-top: 8px; }
.obj_issue_toc .heading .rana-cover-title { font-size: 11.5px; line-height: 1.6; }
.obj_issue_toc .heading .rana-cover-issue { padding: 4px 10px; font-size: 10px; }
.masthead-cover .rana-cover, .masthead-cover .cover-image { width: 215px; }
@media (max-width: 900px) {
  .obj_issue_toc .heading > .cover, .obj_issue_toc .heading > .rana-cover { max-width: 170px; }
}

/* justified abstract (article page) */
.obj_article_details .item.abstract :is(p, div, span, li), .obj_article_details .abstract :is(p, div, li) {
  text-align: justify !important; text-justify: inter-word; text-align-last: start; hyphens: auto; line-height: 2.1;
}
.obj_article_details .item.abstract p { margin: 0 0 12px; }
.obj_article_details .item.abstract p:last-child { margin-bottom: 0; }

/* references card */
.obj_article_details .item.references .value { margin: 0; padding: 0; border: 0; background: none; }
.rana-refs-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--rana-lift); }
.rana-refs { margin: 0; padding: 4px 22px; list-style: none; counter-reset: rana-ref; }
.rana-ref { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; padding: 15px 0; border-bottom: 1px dashed var(--line); counter-increment: rana-ref; }
.rana-ref:last-child { border-bottom: 0; }
.rana-ref::before { content: counter(rana-ref); display: grid; place-items: center; width: 30px; height: 30px; margin-top: 2px; border-radius: 9px; background: var(--journal-soft); color: var(--journal-accent-ink); font-family: var(--font-ui); font-size: 12px; font-weight: 800; direction: ltr; }
html[lang^="fa"] .rana-ref::before { content: counter(rana-ref, persian); }
.rana-ref-text { min-width: 0; font-family: var(--font-ui); font-size: 14px; line-height: 1.95; color: var(--text); unicode-bidi: plaintext; text-align: start; overflow-wrap: anywhere; }
.rana-ref-text a { direction: ltr; unicode-bidi: embed; color: var(--journal-accent-ink); word-break: break-all; }
.rana-refs-card.is-collapsed .rana-ref-extra { display: none; }
.rana-refs-card.is-collapsed .rana-refs { position: relative; }
.rana-refs-card.is-collapsed .rana-ref:nth-last-child(1 of :not(.rana-ref-extra)) { border-bottom: 0; }
.rana-refs-toggle { display: block; width: 100%; padding: 14px 18px; border: 0; border-top: 1px solid var(--line); background: var(--surface-alt); color: var(--journal-accent-ink); font-family: var(--font-ui); font-size: 13.5px; font-weight: 800; cursor: pointer; transition: background .2s; }
.rana-refs-toggle:hover { background: var(--journal-soft); }
.rana-refs-card.is-collapsed .rana-refs::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 44px; pointer-events: none; background: linear-gradient(180deg, transparent, var(--surface)); }

/* ============================================================
   v1.1 — justified abstracts, home "مقالات" section, premium touches
   ============================================================ */

/* Abstracts: justified everywhere (home masthead, opened abstract on cards, article page) */
.masthead-copy > p,
.homepage_about p,
.abstract-inner :is(.abstract-text, p, div, span, li),
.obj_article_summary .abstract-inner p,
.obj_article_details .abstract,
.obj_article_details .abstract p,
.obj_issue_toc .description,
.obj_issue_toc .description p {
  text-align: justify !important;
  text-justify: inter-word;
  text-align-last: start;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* home: articles section header */
.page_index_journal .current_issue > .section-heading { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.page_index_journal .current_issue > .section-heading h2 {
  margin: 0; padding: 0; border: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.page_index_journal .current_issue > .section-heading .kicker { display: block; margin: 0 0 4px; font-size: 12px; }
.page_index_journal .current_issue > .section-heading .text-link {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--button-radius); background: var(--surface);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.page_index_journal .current_issue > .section-heading .text-link:hover { border-color: var(--journal-accent); background: var(--journal-soft); }

/* empty state */
.rana-empty {
  display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center;
  padding: 40px 22px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-alt);
  font-family: var(--font-ui);
}
.rana-empty strong { font-size: 16px; color: var(--text); }
.rana-empty span { font-size: 13px; color: var(--muted); }

/* sidebar: journal information */
.info-list { margin: 0; display: flex; flex-direction: column; }
.info-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-family: var(--font-ui); font-size: 13px; }
.info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 700; text-align: end; }

/* indexing cards: the uploaded logo fills the tile */
.indexing-logo { width: 100%; height: 52px; background: transparent; padding: 0; }
.indexing-logo img { max-height: 52px; }

/* article card polish */
.obj_article_summary { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.obj_article_summary:hover { border-color: var(--journal-accent); box-shadow: 0 14px 28px -20px var(--journal-glow); }

/* browse / sidebar blocks supplied by OJS plugins */
.journal-sidebar .pkp_block { margin: 0 0 22px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--card-shadow); }
.journal-sidebar .pkp_block .title { margin: 0 0 12px; font-family: var(--font-ui); font-size: 15px; font-weight: 800; color: var(--text); }
.journal-sidebar .pkp_block ul { margin: 0; padding: 0; list-style: none; }
.journal-sidebar .pkp_block li { padding: 6px 0; font-family: var(--font-ui); font-size: 13.5px; }
.journal-sidebar .pkp_block li ul { margin-top: 6px; padding-inline-start: 14px; border-inline-start: 2px solid var(--journal-soft); }
.journal-sidebar .pkp_block .current > a { font-weight: 800; }

/* back to top */
.rana-to-top {
  position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 40;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--journal-accent); color: var(--journal-on-accent); font-size: 18px; line-height: 1;
  box-shadow: 0 10px 24px -10px var(--journal-glow); transition: transform .2s ease;
}
.rana-to-top:hover { transform: translateY(-3px); }

/* login: spam-protection widgets */
.auth-field.recaptcha_wrapper, .auth-field.altcha_wrapper { margin-bottom: 18px; }

/* home: «مقالات» heading above the published articles */
.obj_issue_toc .rana-articles-title {
  margin: 30px 0 4px; padding-inline-start: 12px; border-inline-start: 4px solid var(--journal-accent);
  font-family: var(--heading-font); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; line-height: 1.4;
}


/* ============================================================
   v1.4 — header layout, compact issue card, archive, titles, headings
   ============================================================ */

/* ---------- header: logo (start) | menu (centre) | login/register (end) ----------
   "start/end" follow the page direction: logo on the right in RTL, on the left in LTR. */
.site-header .header-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand nav actions"; align-items: center; gap: 20px; min-height: 72px;
}
.university-brand { grid-area: brand; justify-self: start; }
.site-nav { grid-area: nav; justify-self: center; display: block; margin: 0 !important; }
.header-actions { grid-area: actions; justify-self: end; margin: 0 !important; flex-wrap: nowrap; }
.nav-toggle { grid-area: toggle; display: none; }

/* logo only: no circle, no frame */
.brand-logo {
  width: auto; height: 50px; max-width: 240px; object-fit: contain;
  border-radius: 0; background: none; padding: 0; box-shadow: none; filter: none;
}

.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav > ul { display: flex; align-items: center; justify-content: center; gap: 2px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a {
  position: relative; display: block; padding: 10px 14px; font-family: var(--font-ui);
  font-size: 13.5px; font-weight: 600; color: var(--header-muted); white-space: nowrap;
}
.site-nav > ul > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--nav-active); transform: scaleX(0); transition: transform .25s var(--rana-ease);
}
.site-nav > ul > li > a:hover, .site-nav > ul > li.current > a { color: var(--nav-active); }
.site-nav > ul > li > a:hover::after, .site-nav > ul > li.current > a::after { transform: scaleX(1); }
.site-nav li.has-sub > a::before { content: "▾"; margin-inline-end: 5px; font-size: 10px; opacity: .7; }
.site-nav ul ul {
  display: none; position: absolute; z-index: 200; top: 100%; inset-inline-start: 0; min-width: 220px; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
}
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }
.site-nav ul ul a {
  display: block; padding: 9px 12px; border-radius: 4px; font-family: var(--font-ui); font-size: 13px;
  font-weight: 600; color: var(--text); white-space: nowrap;
}
.site-nav ul ul a::after { display: none; }
.site-nav ul ul a:hover { background: var(--journal-soft); color: var(--journal-accent-ink); }
body[data-theme="prestige"] .site-nav ul ul a { color: #2a2023; }

.header-actions .btn-sm { padding: 8px 16px; font-size: 13px; }

.nav-toggle {
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--header-border); border-radius: var(--button-radius);
  background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--header-text); }

@media (max-width: 980px) {
  .site-header .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand actions toggle" "nav nav nav"; gap: 12px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; justify-self: stretch; padding: 6px 0 12px; border-top: 1px solid var(--header-border); }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a { padding: 11px 4px; }
  .site-nav > ul > li > a::after { display: none; }
  .site-nav ul ul { position: static; display: none; min-width: 0; margin: 0 0 6px; box-shadow: none; }
  .site-nav li.sub-open > ul { display: block; }
  .site-nav li:hover > ul { display: none; }
  .site-nav li.sub-open:hover > ul { display: block; }
}
@media (max-width: 640px) {
  .header-actions .lang-switch { display: none; }
  .header-actions .btn-ghost { display: inline-flex; }
  .brand-logo { height: 40px; max-width: 170px; }
}

/* ---------- compact current-issue card ---------- */
.obj_issue_toc .heading {
  grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center;
  margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; box-shadow: none; overflow: hidden;
}
.obj_issue_toc .heading::before { height: 3px; }
.obj_issue_toc .heading > .cover, .obj_issue_toc .heading > .rana-cover {
  max-width: 92px; width: 92px; grid-row: 1 / span 20; align-self: center; margin: 0;
}
.obj_issue_toc .heading > .cover { border-radius: 3px 6px 6px 3px; box-shadow: 0 8px 16px -10px rgba(0,0,0,.45); }
html[dir="rtl"] .obj_issue_toc .heading > .cover { border-radius: 6px 3px 3px 6px; }
.obj_issue_toc .heading > .cover:hover { transform: none; }
.obj_issue_toc .heading .description { font-size: 14px; line-height: 1.9; margin: 0 0 8px; }
.obj_issue_toc .heading .published, .obj_issue_toc .heading .pub_id { padding: 3px 10px; font-size: 11.5px; margin-bottom: 4px; }
.obj_issue_toc .heading .galleys, .obj_issue_toc .heading .galleys_links { margin-top: 8px; }
/* cover is the only content: shrink the card to the cover */
.obj_issue_toc .heading:not(:has(> :not(.cover):not(.rana-cover))) {
  grid-template-columns: 92px; width: fit-content; padding: 8px; border-radius: 10px;
}
/* generated cover at small size */
.obj_issue_toc .heading > .rana-cover { padding: 8px 6px; gap: 4px; border-radius: 3px 6px 6px 3px; box-shadow: 0 8px 16px -10px rgba(0,0,0,.45); }
html[dir="rtl"] .obj_issue_toc .heading > .rana-cover { border-radius: 6px 3px 3px 6px; }
.obj_issue_toc .heading > .rana-cover::before { inset: 4px; }
.obj_issue_toc .heading .rana-cover-top, .obj_issue_toc .heading .rana-cover-title { display: none; }
.obj_issue_toc .heading .rana-cover-acronym { font-size: 17px; }
.obj_issue_toc .heading .rana-cover-acronym::after { width: 22px; margin-top: 5px; }
.obj_issue_toc .heading .rana-cover-bottom { min-height: 0; }
.obj_issue_toc .heading .rana-cover-issue { padding: 2px 6px; font-size: 8px; }
/* home masthead cover */
.masthead-inner { grid-template-columns: 150px minmax(0, 1fr); gap: 32px; }
.masthead-cover .rana-cover, .masthead-cover .cover-image { width: 150px; }
.masthead-cover .rana-cover { padding: 14px 10px; gap: 8px; }
.masthead-cover .rana-cover-uni { display: none; }
.masthead-cover .rana-cover-logo { width: 30px; height: 30px; }
.masthead-cover .rana-cover-acronym { font-size: 24px; }
.masthead-cover .rana-cover-title { font-size: 10px; line-height: 1.6; }
.masthead-cover .rana-cover-issue { padding: 3px 8px; font-size: 9px; }
.journal-masthead { padding: 40px 0 44px; }
@media (max-width: 680px) { .masthead-inner { grid-template-columns: 1fr; } .masthead-cover { display: none; } }

/* ---------- headings: one title above the articles ---------- */
.obj_issue_toc .sections { margin-top: 24px; }
.obj_issue_toc .sections .section > :is(h2, h3) {
  display: block; margin: 28px 0 6px; padding: 0 12px; padding-inline-start: 12px; border: 0;
  border-inline-start: 4px solid var(--journal-accent); background: none;
  font-family: var(--heading-font); font-size: 18px; font-weight: 800; line-height: 1.5; color: var(--text);
}
.obj_issue_toc .sections .section > :is(h2, h3)::before, .obj_issue_toc .sections .section > :is(h2, h3)::after { content: none; display: none; }
.obj_issue_toc .sections .section:first-child > :is(h2, h3) { margin-top: 0; }

/* ---------- home: about the journal (single heading) ---------- */
.page_index_journal .homepage_about > h2.about-title { margin: 0 0 14px; font-size: 20px; }
.homepage_about .about-body > :is(h1, h2, h3, h4):first-child {
  margin: 0 0 14px; padding-inline-start: 12px; border-inline-start: 4px solid var(--journal-accent); font-size: 20px; line-height: 1.5;
}
.homepage_about .about-body :is(h1, h2, h3, h4):not(:first-child) { margin: 20px 0 8px; padding: 0; border: 0; font-size: 16px; }
.homepage_about .about-body p { margin: 0 0 12px; }

/* ---------- article titles: smaller ---------- */
.obj_article_summary .title { font-size: 15.5px; line-height: 1.65; }
.journal-main .obj_article_details .page_title,
.obj_article_details .page_title { font-size: 21px !important; line-height: 1.6 !important; font-weight: 800; padding-bottom: 14px !important; margin-bottom: 18px !important; }
.obj_article_details .subtitle { font-size: 15px; }
.journal-main .page > h1, .journal-main h1.page_title { font-size: 24px; }
.page_issue > h1, .page_issue .page_title, .page_issue_archive .page_title { font-size: 24px; }

/* ---------- archive ---------- */
.rana-archive .archive-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rana-archive .archive-head .page_title { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.rana-archive .archive-head .page_title::after { display: none; }
.rana-archive .archive-count { padding: 2px 12px; border-radius: 999px; background: var(--journal-soft); color: var(--journal-accent-ink); font-family: var(--font-ui); font-size: 12.5px; font-weight: 800; }
.page_issue_archive .issues_archive {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none;
}
.page_issue_archive .issues_archive > li { margin: 0; padding: 0; }
.journal-main .page_issue_archive .obj_issue_summary,
.page_issue_archive .obj_issue_summary {
  display: grid !important; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; height: 100%;
  padding: 16px !important; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  box-shadow: none; transform: none; transition: border-color .2s, box-shadow .2s;
}
.page_issue_archive .obj_issue_summary:hover { transform: none; border-color: var(--journal-accent); box-shadow: 0 14px 28px -20px var(--journal-glow); }
.obj_issue_summary .cover { display: block; width: 84px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px 6px 6px 3px; box-shadow: 0 8px 16px -10px rgba(0,0,0,.45); background: var(--surface-alt); }
html[dir="rtl"] .obj_issue_summary .cover { border-radius: 6px 3px 3px 6px; }
.obj_issue_summary .cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.issue-thumb {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 100%; height: 100%; padding: 10px 6px;
  text-align: center; color: #fff; font-family: var(--font-ui);
  background: linear-gradient(160deg, var(--ru-navy), color-mix(in srgb, var(--ru-navy) 50%, var(--journal-accent)));
}
.issue-thumb-acr { font-size: 15px; font-weight: 800; letter-spacing: .04em; color: var(--ru-orange); direction: ltr; }
.issue-thumb-year { font-size: 17px; font-weight: 800; }
.issue-thumb-vn { font-size: 9.5px; line-height: 1.6; opacity: .9; }
.obj_issue_summary .issue-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.obj_issue_summary .series { font-family: var(--font-ui); font-size: 12px; font-weight: 800; color: var(--journal-accent-ink); }
.obj_issue_summary .title { margin: 0; font-family: var(--heading-font); font-size: 15px; font-weight: 700; line-height: 1.65; }
.obj_issue_summary .title a { color: var(--text); }
.obj_issue_summary .title a:hover { color: var(--journal-accent-ink); }
.obj_issue_summary .issue-date { font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.obj_issue_summary .description { font-family: var(--font-ui); font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.obj_issue_summary .issue-open {
  align-self: flex-start; margin-top: 6px; padding: 5px 14px; border: 1px solid var(--journal-accent); border-radius: var(--button-radius);
  font-family: var(--font-ui); font-size: 12px; font-weight: 800; color: var(--journal-accent-ink);
}
.obj_issue_summary .issue-open:hover { background: var(--journal-accent); color: var(--journal-on-accent); }
@media (max-width: 420px) { .page_issue_archive .issues_archive { grid-template-columns: minmax(0, 1fr); } }

/* ---------- v1.4.1 archive: robust row cards ---------- */
.page_issue_archive .archive-head { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.page_issue_archive ul.issues_archive { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important; gap: 18px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; border: 0 !important; }
.page_issue_archive ul.issues_archive > li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.journal-main .page_issue_archive article.obj_issue_summary {
  display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 18px !important;
  width: 100% !important; max-width: none !important; height: 100%; margin: 0 !important; padding: 16px !important;
  border: 1px solid var(--line) !important; border-radius: 12px !important; background: var(--surface) !important; box-shadow: none !important;
}
.journal-main .page_issue_archive article.obj_issue_summary > a.cover { flex: 0 0 104px !important; width: 104px !important; max-width: 104px; align-self: flex-start; margin: 0; }
.journal-main .page_issue_archive article.obj_issue_summary > .issue-info { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; display: flex; flex-direction: column; gap: 6px; }
.page_issue_archive .obj_issue_summary .series, .page_issue_archive .obj_issue_summary .issue-date, .page_issue_archive .obj_issue_summary .description { display: block; width: auto; margin: 0; }
.page_issue_archive .obj_issue_summary .title { font-size: 16px; }
.page_issue_archive .obj_issue_summary .issue-open { margin-top: auto; padding: 6px 16px; width: auto; white-space: nowrap; }
.page_issue_archive .issue-info { padding-top: 2px; }
.rana-register-extra { display: flex; justify-content: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.rana-register-extra .rana-submit { min-width: 220px; }
.rana-reg-error { margin: 0 0 18px; }
.rana-reg-error[hidden] { display: none !important; }
.page_register .auth-card :is(.pkp_form_error, .cmp_form_error, .error, .form_error) { display: block; color: #7a0a1f; }
.rana-register-extra .rana-submit { position: relative; z-index: 2; pointer-events: auto; }

/* ---------- registration done / message pages ---------- */
.rana-done { text-align: center; }
.rana-done-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #fde8d6; color: #c2410c; font-size: 28px; font-weight: 800; }
.rana-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.rana-message-body { font-size: 14.5px; line-height: 2; }
.page_register .pkp_form_error { margin-bottom: 18px; padding: 14px 16px; border: 1px solid #d9a1ad; border-radius: var(--radius); background: #fdecef; color: #7a0a1f; }
.page_register .pkp_form_error ul { margin: 6px 0 0; padding-inline-start: 18px; }
.page_register altcha-widget, .page_login altcha-widget { display: block; }
.page_register .g-recaptcha { margin: 8px 0 14px; }

/* ---------- 1.5 registration: OJS's own page, only lightly styled ---------- */
.page_register:not(:has(.auth-card)) { max-width: 760px; margin-inline: auto; padding: 28px 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.page_register > h1 { margin: 0 0 8px; font-size: 24px; }
.page_register fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.page_register legend { margin-bottom: 10px; padding: 0 0 8px; width: 100%; border-bottom: 2px solid var(--journal-accent); font-family: var(--font-ui); font-size: 15px; font-weight: 800; color: var(--journal-accent-ink); }
.page_register label { display: block; margin: 0 0 12px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; }
.page_register label > .label, .page_register label > span:first-child { display: block; margin-bottom: 6px; }
.page_register input[type="text"], .page_register input[type="email"], .page_register input[type="password"], .page_register input[type="url"], .page_register select, .page_register textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 14.5px;
}
.page_register input[type="checkbox"], .page_register input[type="radio"] { width: auto; min-height: 0; margin-inline-end: 8px; }
.page_register .buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.page_register .buttons .submit, .page_register button[type="submit"] {
  display: inline-block; min-width: 180px; padding: 12px 32px; border: 1px solid var(--journal-accent); border-radius: var(--button-radius);
  background: var(--journal-accent); color: var(--journal-on-accent); font-family: var(--font-ui); font-size: 15px; font-weight: 800; cursor: pointer;
}

/* ---------- 1.6 registration form (plain HTML) ---------- */
.rana-reg .auth-card { max-width: 720px; margin-inline: auto; }
.rana-reg-group { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.rana-reg-group > legend { width: 100%; margin: 0 0 14px; padding: 0 0 8px; border-bottom: 2px solid var(--journal-accent); font-family: var(--font-ui); font-size: 15px; font-weight: 800; color: var(--journal-accent-ink); }
.rana-reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.rana-reg .rana-full { grid-column: 1 / -1; }
.rana-f label { display: block; margin: 0 0 6px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; }
.rana-f label b { color: #b3122f; }
.rana-reg .rana-f input, .rana-reg .rana-f select {
  display: block; width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--text); font: inherit; font-size: 14.5px;
}
.rana-reg .rana-f input:focus, .rana-reg .rana-f select:focus { outline: 0; border-color: var(--journal-accent); box-shadow: 0 0 0 3px var(--journal-glow); }
.rana-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-family: var(--font-ui); font-size: 13.5px; line-height: 1.8; }
.rana-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--journal-accent); }
.rana-reg-actions { display: flex; justify-content: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.rana-reg-submit {
  min-width: 220px; padding: 14px 40px; border: 1px solid var(--journal-accent); border-radius: var(--button-radius);
  background: var(--journal-accent); color: var(--journal-on-accent); font-family: var(--font-ui); font-size: 15px; font-weight: 800; cursor: pointer;
}
.rana-reg-submit:hover { filter: brightness(.92); }
.rana-reg .pkp_form_error { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #d9a1ad; border-radius: var(--radius); background: #fdecef; color: #7a0a1f; font-size: 13.5px; }
.rana-reg .pkp_form_error ul { margin: 6px 0 0; padding-inline-start: 18px; }
@media (max-width: 600px) { .rana-reg-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 1.7 current-issue card: cover left, text right, no empty space ---------- */
.obj_issue_toc .heading {
  display: flex; flex-direction: row; align-items: flex-start; gap: 24px;
  padding: 20px 22px; margin-bottom: 24px; border-radius: 14px; background: var(--surface); box-shadow: var(--card-shadow);
}
html[dir="rtl"] .obj_issue_toc .heading, html[dir="ltr"] .obj_issue_toc .heading { background-image: none; }
.obj_issue_toc .heading > .cover, .obj_issue_toc .heading > .rana-cover {
  flex: 0 0 132px; width: 132px; max-width: 132px; grid-row: auto; grid-column: auto; align-self: flex-start; margin: 0;
}
.obj_issue_toc .heading > .cover { border-radius: 4px 8px 8px 4px; box-shadow: 0 10px 22px -12px rgba(0,0,0,.5); }
html[dir="rtl"] .obj_issue_toc .heading > .cover { border-radius: 8px 4px 4px 8px; }
.obj_issue_toc .heading > .rana-cover { padding: 12px 8px; gap: 6px; }
.obj_issue_toc .heading .rana-cover-acronym { font-size: 22px; }
.obj_issue_toc .heading .rana-cover-title { display: block; font-size: 9.5px; line-height: 1.6; }
.obj_issue_toc .heading .rana-cover-issue { font-size: 8.5px; }
.obj_issue_toc .heading .heading-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.obj_issue_toc .heading .heading-body:not(:has(*)) { display: none; }
.obj_issue_toc .heading .heading-body > * { grid-column: auto; margin: 0; }
.obj_issue_toc .heading .description { font-size: 14.5px; line-height: 2; }
.obj_issue_toc .heading .description p:last-child { margin-bottom: 0; }
.obj_issue_toc .heading .published, .obj_issue_toc .heading .pub_id { display: inline-flex; width: auto; margin: 0; padding: 4px 12px; font-size: 12px; }
.obj_issue_toc .heading::before { height: 3px; }
/* only a cover and nothing else: show just the cover, no big empty card */
.obj_issue_toc .heading:not(:has(.heading-body *)) { width: fit-content; padding: 10px; }
@media (max-width: 560px) {
  .obj_issue_toc .heading { flex-direction: column; align-items: center; }
  .obj_issue_toc .heading .heading-body { align-items: stretch; }
}

/* ---------- 1.8 logo lists (indexing + partners): big logos, one after another ---------- */
.logo-card .indexing-grid, .sidebar-card .indexing-grid { display: flex; flex-direction: column; gap: 12px; }
.indexing-item {
  flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 0;
  padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: 0 1px 2px rgba(30, 24, 26,.06), 0 8px 18px -14px rgba(30, 24, 26,.35);
}
.indexing-item:hover { transform: translateY(-2px); border-color: var(--journal-accent); }
.indexing-logo { width: 100%; height: auto; min-height: 64px; padding: 0; background: transparent; border-radius: 0; overflow: visible; }
.indexing-logo img, .indexing-logo img.indexing-fav { width: auto; height: auto; max-width: 100%; max-height: 84px; margin-inline: auto; object-fit: contain; border: 0; padding: 0; background: none; }
.indexing-logo .indexing-badge { width: 72px; height: 72px; border-radius: 14px; font-size: 20px; }
.indexing-name { font-size: 12px; color: var(--muted); }
body[data-theme="prestige"] .indexing-item { background: #ffffff; }

/* ---------- home order: current issue, journal summary, announcements ---------- */
.page_index_journal > .current_issue { order: 1; }
.page_index_journal > .homepage_about { order: 2; }
.page_index_journal > .cmp_announcements, .page_index_journal > .rana-announcements { order: 3; }
.page_index_journal > .additional_content { order: 4; }
.rana-announcements .section-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rana-announcements .section-heading h2 { font-size: 22px; }
.rana-ann-list { display: flex; flex-direction: column; gap: 12px; }
.rana-ann-list .obj_announcement_summary { margin: 0; }

/* ---------- 1.9 downloads card ---------- */
.rana-dl-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rana-dl {
  display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.rana-dl:hover { border-color: var(--journal-accent); box-shadow: 0 10px 22px -16px var(--journal-glow); transform: translateY(-1px); }
.rana-dl-icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--journal-soft); color: var(--journal-accent-ink); font-family: var(--font-ui); font-size: 11px; font-weight: 800; direction: ltr;
}
.rana-dl-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.rana-dl-text strong { font-family: var(--font-ui); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.rana-dl-text small { font-family: var(--font-ui); font-size: 11px; color: var(--muted); }
.rana-dl-go { flex: 0 0 auto; padding: 5px 12px; border-radius: 999px; background: var(--journal-accent); color: var(--journal-on-accent); font-family: var(--font-ui); font-size: 11.5px; font-weight: 800; }

/* ---------- 2.0 logo lists: clean vertical column of big logos (indexing + partners) ---------- */
.logo-card { padding-bottom: 22px; }
.logo-card .indexing-grid { display: flex; flex-direction: column; align-items: stretch; gap: 20px; margin-top: 6px; }
.logo-card .indexing-item, .logo-card .indexing-item.has-logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 0;
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center; transform: none;
  transition: opacity .2s, transform .2s;
}
.logo-card .indexing-item:hover { transform: scale(1.03); border: 0; box-shadow: none; opacity: .92; }
.logo-card .indexing-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; min-height: 0; padding: 0; background: none; border-radius: 0; overflow: visible; }
.logo-card .indexing-logo img, .logo-card .indexing-logo img.indexing-fav {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 110px; margin: 0 auto; object-fit: contain; padding: 0; border: 0; border-radius: 0; background: none;
}
.logo-card .indexing-item:not(.has-logo) { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.logo-card .indexing-item:not(.has-logo) .indexing-name { font-size: 13px; font-weight: 800; color: var(--text); }
body[data-theme="prestige"] .logo-card .indexing-item:not(.has-logo) { background: #ffffff; }

/* ---------- 2.1 logo lists: large logos, no card line around each logo (indexing + partners) ---------- */
.logo-card .indexing-grid { gap: 22px; margin-top: 10px; }
.logo-card .indexing-item,
.logo-card .indexing-item.has-logo,
.logo-card .indexing-item:not(.has-logo),
body[data-theme="prestige"] .logo-card .indexing-item:not(.has-logo) {
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; min-height: 0;
}
.logo-card .indexing-item:hover { transform: none; border: 0; box-shadow: none; opacity: .85; }
/* the logo fills the sidebar width, small images are scaled up instead of staying tiny */
.logo-card .indexing-logo { width: 100%; height: 104px; min-height: 0; }
.logo-card .indexing-logo img,
.logo-card .indexing-logo img.indexing-fav {
  width: 100%; height: 100%; max-width: 100%; max-height: none; object-fit: contain;
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.logo-card .indexing-logo .indexing-badge { width: 84px; height: 84px; border-radius: 50%; font-size: 22px; }
.logo-card .indexing-item:not(.has-logo) .indexing-name { font-size: 14px; }

/* ---------- 2.2 home page: article template download button ---------- */
.rana-home-dl { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.rana-home-dl-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px;
  background: var(--journal-soft); border-inline-start: 5px solid var(--journal-accent);
}
.rana-home-dl-icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--journal-accent); color: var(--journal-on-accent); font-family: var(--font-ui); font-size: 13px; font-weight: 800; direction: ltr;
}
.rana-home-dl-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.rana-home-dl-text strong { font-family: var(--font-ui); font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.rana-home-dl-text small { font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.rana-home-dl-btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 560px) {
  .rana-home-dl-item { flex-wrap: wrap; }
  .rana-home-dl-btn { width: 100%; text-align: center; }
}

/* ---------- 2.3 DOI: original DOI logo, link text in black ---------- */
.doi-badge {
  display: inline-block; flex: 0 0 auto; width: 24px; height: 24px; padding: 0 !important; border-radius: 50%; vertical-align: middle;
  background: url(data:image/png;base64,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) center / contain no-repeat !important;
}
.card-doi, .rana-doi-link { color: #111 !important; }
.card-doi { border-color: var(--line); gap: 8px; padding-inline-start: 6px; }
.card-doi:hover { border-color: #111; background: var(--surface-alt); }
.rana-doi-link:hover { text-decoration: underline; }

/* ---------- 2.4 sidebar: journal metrics + keywords ---------- */
.rana-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.rana-metrics > div { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 2px; padding: 12px 6px; border-radius: 12px; background: var(--journal-soft); text-align: center; }
.rana-metrics dd { margin: 0; font-family: var(--font-ui); font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--journal-accent-ink); }
.rana-metrics dt { font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--muted); }
.keywords-card .keyword-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.keywords-card a.keyword { text-decoration: none; }
.keywords-card a.keyword:hover { background: var(--journal-soft); border-color: var(--journal-accent); }

/* ---------- 2.5 home: announcements as dated cards ---------- */
.rana-announcements { margin-top: 36px; }
.rana-announcements .section-heading .kicker { display: block; margin: 0 0 4px; font-family: var(--font-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--journal-accent); }
.rana-ann-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.rana-ann { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.rana-ann:hover { border-color: var(--journal-accent); box-shadow: 0 10px 22px -18px var(--journal-glow); }
.rana-ann-date { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); padding-top: 3px; direction: ltr; text-align: start; }
.rana-ann-type { display: block; margin-bottom: 4px; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--journal-accent); }
.rana-ann-body h3 { margin: 0 0 4px; font-family: var(--heading-font); font-size: 19px; font-weight: 700; line-height: 1.45; }
.rana-ann-body h3 a { color: var(--text); text-decoration: none; }
.rana-ann-body h3 a:hover { color: var(--journal-accent); }
.rana-ann-text { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.rana-ann-text p { margin: 0; }
@media (max-width: 560px) { .rana-ann { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- 2.6 search page + sidebar search ---------- */
.rana-search h1 { margin-bottom: 18px; }
.rana-search-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 26px -20px rgba(30, 24, 26,.5); transition: border-color .2s, box-shadow .2s; }
.rana-search-bar:focus-within { border-color: var(--journal-accent); box-shadow: 0 0 0 3px var(--journal-soft); }
.rana-search-icon { flex: 0 0 auto; color: var(--muted); }
.rana-search-bar input.query { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 6px; border: 0; outline: 0; background: transparent; box-shadow: none; font-family: var(--font-ui); font-size: 16px; color: var(--text); }
.rana-search-bar button.submit { flex: 0 0 auto; height: 44px; padding: 0 26px; border: 0; border-radius: 10px; background: var(--journal-accent); color: var(--journal-on-accent); font-family: var(--font-ui); font-size: 15px; font-weight: 800; cursor: pointer; }
.rana-search-bar button.submit:hover { filter: brightness(1.08); }
.rana-search-adv { margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt, #fafafa); }
.rana-search-adv > summary { padding: 11px 16px; cursor: pointer; font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--text); list-style: none; }
.rana-search-adv > summary::-webkit-details-marker { display: none; }
.rana-search-adv > summary::after { content: "+"; float: inline-end; font-size: 18px; line-height: 1; color: var(--journal-accent); }
.rana-search-adv[open] > summary::after { content: "\2212"; }
.rana-adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 4px 16px 16px; }
.rana-adv-field .label, .rana-adv-field legend { display: block; margin-bottom: 6px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--text); }
.rana-adv-field input[type="text"], .rana-adv-field select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-family: var(--font-ui); font-size: 14px; }
.rana-adv-field fieldset { margin: 0; padding: 0; border: 0; }
.rana-search-count { margin: 20px 0 10px; font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--muted); }
.rana-search-results { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.rana-search-results > li { margin: 0; padding: 0; border: 0; }
.rana-search .rana-empty { margin-top: 22px; }
@media (max-width: 560px) { .rana-search-bar { padding-inline-start: 12px; } .rana-search-bar button.submit { padding: 0 16px; } }

.rana-side-search { display: flex; gap: 8px; }
.rana-side-search input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--font-ui); font-size: 14px; }
.rana-side-search input:focus { outline: 0; border-color: var(--journal-accent); box-shadow: 0 0 0 3px var(--journal-soft); }
.rana-side-search button { flex: 0 0 auto; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--journal-accent); color: var(--journal-on-accent); font-family: var(--font-ui); font-size: 13px; font-weight: 800; cursor: pointer; }
.search-card { padding-block: 14px; }
.rana-search-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.rana-search-suggest a.keyword { text-decoration: none; }
.rana-search-suggest a.keyword:hover { background: var(--journal-soft); border-color: var(--journal-accent); }

/* search filters: Year / Month / Day each sit under their own label, in one row */
.rana-adv-field fieldset { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; margin: 0; padding: 0; border: 0; }
.rana-adv-field fieldset legend { grid-column: 1 / -1; float: none; width: 100%; padding: 0; }
.rana-adv-field fieldset label { display: block; margin: 0; font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--muted); }
.rana-adv-field fieldset select { width: 100%; min-width: 0; margin: 0; }

/* 2.7 Sidebar archive by year */
.archive-card .rana-archive-year { border-top: 1px solid var(--rana-line, rgba(128,128,128,.25)); }
.archive-card .rana-archive-year:first-child { border-top: 0; }
.archive-card summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; cursor: pointer; list-style: none; }
.archive-card summary::-webkit-details-marker { display: none; }
.archive-card .rana-archive-y { font-weight: 700; font-size: 1.05rem; }
.archive-card .rana-archive-count { font-size: .8rem; opacity: .7; }
.archive-card ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; border-inline-start: 2px solid var(--rana-line, rgba(128,128,128,.25)); }
.archive-card li a { display: block; padding: 8px 0 8px 4px; text-decoration: none; }
.archive-card li a:hover .rana-archive-name { text-decoration: underline; }
.archive-card .rana-archive-name { display: block; font-weight: 600; }
.archive-card .rana-archive-meta { display: block; font-size: .78rem; opacity: .7; }
.archive-card li a.is-current .rana-archive-name::after { content: "\2022"; color: #890c25; margin-inline-start: 6px; }
.archive-card .rana-archive-all { display: inline-block; margin-top: 8px; font-size: .85rem; text-decoration: underline; }
[dir="rtl"] .archive-card ul { padding: 0 14px 0 0; }
