/* KEMI Journal — brand accents for OJS default theme */

.pkp_site_name .is_img {
  background-color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
}

.pkp_site_name .is_text,
.pkp_site_name > a.is_text {
  color: #ffffff;
}

/* Footer brand links */
.kemi-footer-links {
  margin-bottom: 1.5rem;
}

.kemi-footer-links strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #0068a7;
  font-size: 1rem;
}

.kemi-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.kemi-footer-links ul a,
.kemi-footer-links p a {
  color: #0068a7;
  text-decoration: none;
}

.kemi-footer-links ul a:hover,
.kemi-footer-links p a:hover {
  text-decoration: underline;
}

.kemi-footer-links p {
  margin: 0;
  font-size: 0.875rem;
}

.kemi-footer-copyright {
  margin-top: 0.75rem;
  color: #555;
}

/* Hide the default OJS/PKP "powered by" branding */
.pkp_brand_footer {
  display: none;
}

/* "Call for Papers" nav link - pulsing red badge to draw attention.
   Pulse rate is well under the WCAG 3-flashes/second seizure-risk threshold,
   and prefers-reduced-motion turns it into a plain static badge.
   Floated to the right of the nav bar - the left end blends in with the
   other plain-text links, the right end is where the eye actually lands. */
#navigationPrimary li:has(> a[href*="announcement/view/2"]) {
  float: right;
  margin-left: 1rem;
}

#navigationPrimary a[href*="announcement/view/2"] {
  color: #ffffff !important;
  background-color: #dc2626;
  border-radius: 999px;
  padding: 6px 16px !important;
  font-weight: 700;
  animation: kjelmCfpPulse 1.6s ease-in-out infinite;
}

#navigationPrimary a[href*="announcement/view/2"]:hover {
  background-color: #b91c1c;
}

@keyframes kjelmCfpPulse {
  0%, 100% {
    background-color: #dc2626;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  }
  50% {
    background-color: #ef4444;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #navigationPrimary a[href*="announcement/view/2"] {
    animation: none;
  }
}

/* Tables inside announcement/article rich-text bodies - the sanitizer allows
   the tags but not a style attribute, so style plain tables here instead. */
.obj_announcement_full .description table,
.page_announcement table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.25rem;
}

.obj_announcement_full .description table th,
.obj_announcement_full .description table td,
.page_announcement table th,
.page_announcement table td {
  padding: 8px 12px;
  border: 1px solid #dbe3ea;
  text-align: left;
}

.obj_announcement_full .description table th,
.page_announcement table th {
  background-color: #0068a7;
  color: #ffffff;
}

.obj_announcement_full .description table tr:nth-child(even) td,
.page_announcement table tr:nth-child(even) td {
  background-color: #f3f7fa;
}
