/* Multiple affiliations and email addresses remain ordinary form fields. */
.affiliation-entries, .email-entries { display: grid; gap: .55rem; }
[data-author-affiliations]:not([hidden]), [data-author-emails]:not([hidden]) { display: block; width: 100%; min-height: 80px; padding: .75rem .9rem; border: 1px solid #d5dbe4; border-radius: 10px; background: #fff; color: var(--ui-ink, #1d2433); font: inherit; resize: vertical; }
.affiliation-entry, .email-entry { display: flex; align-items: center; gap: .45rem; }
.affiliation-entry input, .email-entry input { flex: 1; min-width: 0; }
.affiliation-fields .btn-remove-affiliation, .email-fields .btn-remove-email { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; min-height: 36px; padding: 0; border: 1px solid #ecd9dc; border-radius: 9px; background: #fff; color: #b32435; font: inherit; font-size: 1.3rem; cursor: pointer; }
.affiliation-fields .btn-remove-affiliation:hover:enabled, .email-fields .btn-remove-email:hover:enabled { background: #fff1f2; }
.btn-remove-affiliation:disabled, .btn-remove-email:disabled { opacity: .4; cursor: default; }
.affiliation-fields .btn-add-affiliation, .email-fields .btn-add-email { display: inline-flex; align-items: center; min-height: 36px; margin-top: .65rem; padding: .4rem .75rem; border: 0; border-radius: 9px; background: var(--ui-accent-soft, #edf5ff); color: var(--ui-accent, #0066cc); font: inherit; font-size: .8rem; font-weight: 550; cursor: pointer; }
.affiliation-fields button:focus-visible, .email-fields button:focus-visible { outline: 3px solid var(--ui-accent, #0066cc); outline-offset: 2px; }
[data-author-affiliations][hidden], [data-author-emails][hidden] { display: none; }
/* The Add button disappears at the 5-item limit (PERSON_LIST_MAX). */
.affiliation-fields .btn-add-affiliation[hidden], .email-fields .btn-add-email[hidden] { display: none; }
/* Dark colour scheme (prefers-color-scheme): tokens in design-system.css. */
@media(prefers-color-scheme:dark) {
  :where(html:not([data-color-scheme="light"])) [data-author-affiliations]:not([hidden]), :where(html:not([data-color-scheme="light"])) [data-author-emails]:not([hidden]) { border-color:var(--ui-field-line); background:var(--ui-surface); }
  :where(html:not([data-color-scheme="light"])) .affiliation-fields .btn-remove-affiliation, :where(html:not([data-color-scheme="light"])) .email-fields .btn-remove-email { border-color:var(--ui-error-line); background:var(--ui-surface); color:var(--ui-error-ink); }
  :where(html:not([data-color-scheme="light"])) .affiliation-fields .btn-remove-affiliation:hover:enabled, :where(html:not([data-color-scheme="light"])) .email-fields .btn-remove-email:hover:enabled { background:var(--ui-error-bg); }
  @media(prefers-contrast:more) { :where(html:not([data-color-scheme="light"])) [data-author-affiliations]:not([hidden]), :where(html:not([data-color-scheme="light"])) [data-author-emails]:not([hidden]) { border-color:#8e9aab; } }
}
/* Generated by dontuploadcl/dark-toggle-20261102/tools/scheme_blocks.py from the dark block above: the same rules when Dark is chosen in the profile (html[data-color-scheme="dark"]). Do not edit by hand. */
  :where(html[data-color-scheme="dark"]) [data-author-affiliations]:not([hidden]), :where(html[data-color-scheme="dark"]) [data-author-emails]:not([hidden]) { border-color:var(--ui-field-line); background:var(--ui-surface); }
  :where(html[data-color-scheme="dark"]) .affiliation-fields .btn-remove-affiliation, :where(html[data-color-scheme="dark"]) .email-fields .btn-remove-email { border-color:var(--ui-error-line); background:var(--ui-surface); color:var(--ui-error-ink); }
  :where(html[data-color-scheme="dark"]) .affiliation-fields .btn-remove-affiliation:hover:enabled, :where(html[data-color-scheme="dark"]) .email-fields .btn-remove-email:hover:enabled { background:var(--ui-error-bg); }
  @media(prefers-contrast:more) { :where(html[data-color-scheme="dark"]) [data-author-affiliations]:not([hidden]), :where(html[data-color-scheme="dark"]) [data-author-emails]:not([hidden]) { border-color:#8e9aab; } }
/* End of the generated copy. */
