:root {
  --print-text: #1a1a1a;
  --print-muted: #444;
  --print-accent: #75142a;
}

* {
  box-sizing: border-box;
}

.print-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #75142a;
}

.print-brand .logo-frame {
  border: 2px solid #d4a72c;
  background: transparent;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 0 0 1px rgba(117, 20, 42, 0.12);
}

.print-brand .logo-frame__img {
  object-fit: contain;
}

.print-brand-univ {
  margin: 0;
  font-size: 11pt;
  font-weight: bold;
  color: #4a1548;
}

.print-brand-journal {
  margin: 0.15rem 0 0;
  font-size: 10pt;
  color: var(--print-muted);
}

body.journal-print {
  margin: 0;
  padding: 2rem 2.5rem 3rem;
  color: var(--print-text);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 12pt;
  line-height: 1.6;
  max-width: 21cm;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

.print-meta {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  font-size: 10pt;
  color: var(--print-muted);
}

.citation-text {
  margin: 0.25rem 0 0.75rem;
}

.timeline,
.license {
  margin: 0.35rem 0;
}

.article-title {
  font-size: 16pt;
  font-weight: bold;
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--print-accent);
  line-height: 1.35;
}

.article-subtitle {
  text-align: center;
  font-style: italic;
  margin: 0 0 1.25rem;
  color: var(--print-muted);
}

.author-block {
  text-align: center;
  margin-bottom: 1.75rem;
  font-size: 11pt;
}

.author-name {
  font-weight: bold;
  margin: 0 0 0.35rem;
}

.affiliation,
.author-email {
  margin: 0.2rem 0;
  font-size: 10pt;
}

.article-body h3 {
  font-size: 12pt;
  font-weight: bold;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
  color: var(--print-accent);
}

.article-body h4 {
  font-size: 12pt;
  font-weight: bold;
  margin: 1rem 0 0.5rem;
}

.article-body p {
  margin: 0 0 0.75rem;
  text-align: justify;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.print-footer {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ddd;
  font-size: 9pt;
  text-align: center;
  color: var(--print-muted);
}

.screen-toolbar {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}

.screen-toolbar a,
.screen-toolbar button {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.screen-toolbar button {
  background: #75142a;
  color: #fff;
  border-color: #75142a;
}

@page {
  size: A4;
  margin: 2cm 2.2cm;
}

@media print {
  body.journal-print {
    padding: 0;
    max-width: none;
  }

  .no-print {
    display: none !important;
  }

  .article-title {
    page-break-after: avoid;
  }

  .article-body h3,
  .article-body h4 {
    page-break-after: avoid;
  }

  .article-body img {
    page-break-inside: avoid;
  }
}
