body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fcfcfc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header_logo img {
  width: 180px;
  height: 48px;
  object-fit: contain;
}

.header_nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.header_nav a,
.header_actions a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.header_nav a.active,
.header_nav a:hover,
.lang a.active {
  color: #1976d2;
}

.header_actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.btn-login {
  padding: 8px 14px;
  border-radius: 6px;
  background: #1976d2;
  color: #fff !important;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 48px 16px;
  text-align: center;
}

.hero-artigos {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.hero-autores {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.subtitle {
  margin: 0 auto;
  max-width: 700px;
  opacity: 0.95;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.catalog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.catalog-search input {
  flex: 1 1 240px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
}

.catalog-search button,
.btn {
  padding: 12px 24px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.journals-grid,
.articles-grid,
.authors-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.card-revista,
.card-artigo,
.card-autor {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #123d6b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.revista-nome {
  margin: 12px 0;
  font-size: 18px;
}

.revista-nome a,
.card-artigo h2 a,
.card-artigo .artigo-revista a,
.card-artigo .artigo-autores a,
.autor-nome a,
.article-row a,
.article-row .artigo-autores a {
  color: #1e3a8a;
  text-decoration: none;
}

.card-artigo h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
}

.card-artigo h2 a:hover,
.card-artigo .artigo-revista a:hover,
.card-artigo .artigo-autores a:hover,
.article-row .artigo-autores a:hover {
  text-decoration: underline;
}

.card-artigo .artigo-autores,
.card-artigo .artigo-revista {
  font-size: 13px;
  line-height: 1.4;
}

.card-artigo .artigo-autores strong,
.card-artigo .artigo-revista strong {
  color: #1f2937;
  font-weight: 700;
  margin-right: 4px;
}

.card-artigo .artigo-autores a,
.card-artigo .artigo-revista a {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.card-artigo .artigo-data {
  font-size: 13px;
  color: #666;
}

.revista-info,
.card-artigo p,
.card-autor p {
  color: #555;
  margin: 6px 0;
}

.sem-resultados {
  text-align: center;
  padding: 48px 16px;
  background: #fff;
  border-radius: 12px;
}

.article-row {
  border-bottom: 1px solid #e3e7ed;
  padding: 1rem 0;
}

code {
  display: block;
  overflow: auto;
  padding: 1rem;
  background: #f1f3f5;
}

.widget-embed {
  margin: 0 0 2rem;
}

.widget-embed__label {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.widget-embed__demo {
  display: block;
  width: 100%;
  height: 360px;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  background: #fff;
}

.widget-embed__code {
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
}

.footer {
  background: #111827;
  color: #d1d5db;
  padding: 40px 16px 24px;
}

.footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.footer-logo {
  width: 160px;
  filter: brightness(0) invert(1);
}

.ij-mantenedor {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ij-mantenedor p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 52rem;
}

.ij-mantenedor a {
  color: #93c5fd;
  font-weight: 600;
}

.ij-mantenedor a:hover {
  text-decoration: underline;
}

.ij-mantenedor .copy {
  margin: 0;
}

.ij-mantenedor__logo {
  display: inline-block;
  margin-bottom: 12px;
}

.ij-mantenedor__logo img {
  display: block;
  width: 140px;
  height: auto;
}

.copy {
  margin-top: 24px;
  font-size: 13px;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .journals-grid,
  .articles-grid,
  .authors-grid,
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pager {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pager-meta {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.pager-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager-pages a,
.pager-pages span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.pager-pages .current a,
.pager-pages a[aria-current="page"] {
  background: #667eea;
  color: #fff;
}

.pager-pages .disabled span,
.pager-pages .ellipsis span {
  opacity: 0.45;
  box-shadow: none;
  background: transparent;
}

@media (min-width: 1024px) {
  .journals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.journal-profile > .hero {
  text-align: left;
  position: relative;
}

.hero-revista {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 16px;
}

.hero-revista__copy {
  flex: 1;
  min-width: 0;
}

.hero-revista__copy h1 {
  margin-top: 0;
}

.hero-revista__selo {
  flex: 0 0 auto;
  width: 152px;
  height: 152px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

@media (max-width: 640px) {
  .journal-profile > .hero {
    padding-right: 104px;
  }

  .hero-revista {
    display: block;
    padding-right: 0;
  }

  .hero-revista__selo {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 80px;
    height: 80px;
  }
}

body.ij-widget-page {
  margin: 0;
  background: transparent;
  color: #223;
}

.ij-widget {
  font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.ij-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.ij-widget__copy {
  min-width: 0;
}

.ij-widget__copy strong {
  display: block;
  font-size: 15px;
}

.ij-widget__copy small {
  display: block;
  margin-top: 4px;
  color: #567;
}

.ij-widget__selo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
}

.ij-widget__item {
  display: block;
  color: #173d68;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.ij-widget__item b {
  display: block;
}

.ij-widget__item span {
  display: block;
  color: #555;
  margin-top: 4px;
  font-size: 12px;
}

.ij-widget__empty {
  margin: 12px 0;
  color: #555;
}

.ij-widget__foot {
  padding-top: 8px;
  text-align: right;
}

.ij-widget__foot a {
  color: #567;
  text-decoration: none;
  font-size: 13px;
}
