.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: 64px;
  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;
}

/* Article page: exact Default/Health Sciences identifier units after swapping. */
.simplearkpubid_primary_ark_unit{
  margin-top: 0.35em;
  margin-bottom: 0.65em;
}
.simplearkpubid_primary_ark_unit .simplearkpubid_idlogo,
.simplearkpubid_secondary_doi_unit .simplearkpubid_idlogo{
  vertical-align: text-bottom;
}
.simplearkpubid_secondary_doi_unit .simplearkpubid_external_heading{
  margin-bottom: 0.5em;
}

/* Optional resolver acknowledgement preview in settings. */
.simplearkpubid_credit_preview{
  margin: 0.75em 0;
  padding: 0.8em 1em;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f7f7f7;
  color: #555;
  font-size: 0.9em;
  text-align: center;
}
.simplearkpubid_credit_preview div + div{
  margin-top: 0.25em;
}

/* Deliberately separated bulk controls at the end of the settings modal. */
.simplearkpubid_bulk_actions{
  position: relative;
  margin-top: 2em;
  padding: 1.25em;
  border: 2px solid #d9a441;
  border-radius: 5px;
  background: #fffaf0;
}
.simplearkpubid_bulk_actions h3{
  margin-top: 0;
}
.simplearkpubid_bulk_buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 0.65em;
  margin-top: 1em;
}
.simplearkpubid_bulk_warning{
  border-color: #b7791f !important;
  color: #8a5200 !important;
}
.simplearkpubid_bulk_danger{
  border-color: #b91c1c !important;
  color: #991b1b !important;
}
.simplearkpubid_bulk_status{
  margin-top: 1em;
  padding: 0.8em 1em;
  border-radius: 4px;
}
.simplearkpubid_bulk_status.is-success{
  border: 1px solid #86b99a;
  background: #edf8f1;
  color: #245c39;
}
.simplearkpubid_bulk_status.is-error{
  border: 1px solid #d69a9a;
  background: #fff1f1;
  color: #8a1c1c;
}
.simplearkpubid_confirm_overlay[hidden],
.simplearkpubid_bulk_status[hidden]{
  display: none !important;
}
.simplearkpubid_confirm_overlay{
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5em;
  background: rgba(0, 0, 0, 0.55);
}
.simplearkpubid_confirm_dialog{
  width: min(34em, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.5em;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}
.simplearkpubid_confirm_dialog h4{
  margin-top: 0;
}
.simplearkpubid_confirm_buttons{
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65em;
  margin-top: 1.25em;
}

@media (max-width: 600px){
  .simplearkpubid_bulk_buttons,
  .simplearkpubid_confirm_buttons{
    flex-direction: column;
  }
}
