.simplearkpubid_toc{
  margin: 5px 0;
  font-size: 0.95em;
}
.simplearkpubid_label{ font-weight: 600; margin-right: 4px; }
.simplearkpubid_link{ text-decoration: none; }


/* Inline identifier logos (ARK / DOI) */
.simplearkpubid_idlogo{
  display:inline-block;
  height: 14px;
  width: 16px;
  margin-right: 6px;
  vertical-align: text-bottom;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.simplearkpubid_idlogo--ark{
  width: var(--simplearkpubid-ark-icon-w, 16px);
  background-image: var(--simplearkpubid-ark-icon, url('img/ark.png'));
}
.simplearkpubid_idlogo--arkcaicyt{
  width: 22px;
  background-image: url('img/arkcaicyt.png');
}
.simplearkpubid_idlogo--doi{
  background-image: var(--simplearkpubid-doi-icon, url('img/doi.png'));
}

/* Add logos to Vue PubId labels in Publication > Identifiers */
label[for="pub-id::ark"]::before{
  content:"";
  display:inline-block;
  height: 14px;
  width: var(--simplearkpubid-ark-icon-w, 16px);
  margin-right: 6px;
  vertical-align: text-bottom;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image: var(--simplearkpubid-ark-icon, url('img/ark.png'));
}
label[for="pub-id::doi"]::before{
  content:"";
  display:inline-block;
  height: 14px;
  width: 16px;
  margin-right: 6px;
  vertical-align: text-bottom;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image: var(--simplearkpubid-doi-icon, url('img/doi.png'));
}

/* Legacy Public Identifiers headings (best effort) */
#pubIdARKFormArea h3::before,
#pubIdARKFormArea .pkp_formTitle::before,
#pubIdARKFormArea .pkp_form_title::before{
  content:"";
  display:inline-block;
  height: 14px;
  width: var(--simplearkpubid-ark-icon-w, 16px);
  margin-right: 6px;
  vertical-align: text-bottom;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image: var(--simplearkpubid-ark-icon, url('img/ark.png'));
}
#pubIdDOIFormArea h3::before,
#pubIdDOIFormArea .pkp_formTitle::before,
#pubIdDOIFormArea .pkp_form_title::before{
  content:"";
  display:inline-block;
  height: 14px;
  width: 16px;
  margin-right: 6px;
  vertical-align: text-bottom;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image: var(--simplearkpubid-doi-icon, url('img/doi.png'));
}


/* Label shown before DOI when ARK is preferred in the TOC */
.simplearkpubid_external_label{
  font-weight: 600;
  margin-right: 0.2em;
}

/* Article page: when ARK is the only identifier, promote it under the title */
.simplearkpubid_primary_arkblock{
  margin: 0.35em 0 0.65em 0;
  font-size: 0.95em;
}
.simplearkpubid_primary_arkblock .simplearkpubid_idlogo{
  vertical-align: text-bottom;
}
.simplearkpubid_hidden_original{
  display: none !important;
}

/* OMP catalogue, book and chapter views */
.obj_monograph_full .simplearkpubid_public {
  margin-top: 0.75rem;
}
.obj_monograph_full .simplearkpubid_public .value,
.obj_monograph_full .simplearkpubid_toc_value,
.obj_monograph_summary .simplearkpubid_toc_value {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-wrap: anywhere;
}
.obj_monograph_full .item.chapters .simplearkpubid_toc {
  margin: 0.2rem 0;
}
.obj_monograph_summary .simplearkpubid_toc {
  margin: 0.25rem 0 0.45rem;
}
.obj_monograph_full .simplearkpubid_external_label,
.obj_monograph_summary .simplearkpubid_external_label {
  font-weight: normal;
}

/* Keep ARK and DOI as one compact visual unit. The wrapper prevents OMP
   themes from treating them as two independent metadata items. */
.obj_monograph_full .simplearkpubid_identifier_group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
}
.obj_monograph_full .simplearkpubid_identifier_group > .simplearkpubid_identifier_pair {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}
.obj_monograph_full .simplearkpubid_identifier_group > .simplearkpubid_identifier_pair .label,
.obj_monograph_full .simplearkpubid_identifier_group > .simplearkpubid_identifier_pair .value {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.obj_monograph_full .simplearkpubid_identifier_group > .simplearkpubid_identifier_pair .value {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.obj_monograph_full .simplearkpubid_identifier_group .simplearkpubid_inline_label {
  display: inline !important;
  width: auto !important;
  flex: 0 0 auto;
}
