/* J-HyTEL Metadata Bridge — public researcher identifiers. */
.article-details .jhmb-public-id,
.article-details .jhmb-author-detail-link {
  box-sizing: border-box;
  text-decoration: none !important;
}

/*
 * Compact author-chip identifiers.
 * Native OJS ORCID and MetaBridge identifiers intentionally share the same
 * 20px visual mark so authenticated and fallback ORCID never look different.
 */
.article-details .jh-author-list-item {
  column-gap: 4px !important;
}

.article-details .jh-author-list-item .jhmb-public-id,
.article-details .jh-author-list-item .jh-author-orcid {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  vertical-align: middle;
  overflow: visible;
}

/* Normalize the authenticated/native OJS ORCID icon to the same mark used by
 * MetaBridge. The original link remains authoritative and clickable; only its
 * visual contents are replaced. */
.article-details .jh-author-list-item .jh-author-orcid {
  position: relative;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.article-details .jh-author-list-item .jh-author-orcid > * {
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.article-details .jh-author-list-item .jh-author-orcid::before {
  content: "iD";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1px solid #a6ce39;
  border-radius: 999px;
  background: #a6ce39;
  color: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.article-details .jh-author-list-item .jh-author-orcid:hover::before,
.article-details .jh-author-list-item .jh-author-orcid:focus-visible::before {
  box-shadow: 0 0 0 3px rgba(166, 206, 57, .14);
}

.article-details .jhmb-public-id__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
}

/* Equal-size profile marks. ORCID and Scopus use filled brand-like circles. */
.article-details .jhmb-public-id__mark--orcid {
  border-color: #a6ce39;
  background: #a6ce39;
  color: #fff;
}
.article-details .jhmb-public-id__mark--scopus {
  border-color: #f36f21;
  background: #f36f21;
  color: #fff;
}
.article-details .jhmb-public-id__mark--ror {
  border-color: #2b7b72;
  background: #fff;
  color: #2b7b72;
}

.article-details .jhmb-public-id--orcid,
.article-details .jhmb-author-detail-link--orcid { color: #176b4d !important; }
.article-details .jhmb-public-id--scopus,
.article-details .jhmb-author-detail-link--scopus { color: #e85f10 !important; }
.article-details .jhmb-public-id--ror,
.article-details .jhmb-author-detail-link--ror { color: #2b7b72 !important; }

.article-details .jhmb-public-id:hover .jhmb-public-id__mark,
.article-details .jhmb-public-id:focus-visible .jhmb-public-id__mark,
.article-details .jhmb-author-detail-link:hover .jhmb-public-id__mark,
.article-details .jhmb-author-detail-link:focus-visible .jhmb-public-id__mark {
  box-shadow: 0 0 0 3px rgba(52, 90, 110, .09);
}

/*
 * Expanded author details: keep ORCID and Scopus on one line, but give each
 * profile group enough breathing room. Internal icon-to-ID spacing is smaller
 * than the spacing between the two profile groups.
 */
.article-details .jhmb-author-profile-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 20px;
  max-width: 100%;
  margin: 12px auto 12px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: "Perpetua", Georgia, serif;
}
.article-details .jhmb-author-profile-row::-webkit-scrollbar { display: none; }

.article-details .jhmb-author-detail-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 5px;
  min-width: 0;
  font-family: "Perpetua", Georgia, serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.article-details .jhmb-author-detail-link__text {
  white-space: nowrap;
}

.article-details .jhmb-author-detail-link:hover,
.article-details .jhmb-author-detail-link:focus-visible {
  color: #850052 !important;
  text-decoration: underline !important;
}

.article-details .jhmb-native-orcid-source-hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .article-details .jh-author-list-item { column-gap: 3px !important; }
  .article-details .jhmb-author-profile-row { gap: 9px; margin-top: 10px; margin-bottom: 10px; }
  .article-details .jhmb-author-detail-link { font-size: 12.75px; gap: 4px; }
  .article-details .jhmb-public-id__mark,
  .article-details .jh-author-list-item .jh-author-orcid::before {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
    font-size: 9.5px;
  }
}
