/* Uppercase is presentation only. Stored names, email addresses and URLs keep their original spelling. */
.directory tbody td,
.drawer .profile,
.drawer .detail-section dd,
.drawer .identity-display,
.drawer .trip-detail,
.drawer .notes p,
.drawer .connection,
.drawer .social-links,
.drawer .file-row strong,
.drawer .profile-map,
.drawer .website-link,
.drawer .created {
  text-transform: uppercase;
}

/* Bangla and Arabic have no letter case, and their native direction remains intact. */
.directory [lang="bn"],
.directory [lang="ar"],
.drawer [lang="bn"],
.drawer [lang="ar"],
.drawer [dir="rtl"] {
  text-transform: none;
}

/* The edit view matches the record preview for ordinary text while preserving links and email input. */
.drawer form input[type="text"],
.drawer form textarea {
  text-transform: uppercase;
}
.drawer form input[lang="bn"],
.drawer form input[lang="ar"],
.drawer form textarea[lang="bn"],
.drawer form textarea[lang="ar"] {
  text-transform: none;
}

@media print {
  body, .overlay, .drawer, .drawer :is(.profile, .detail-section, .identity-display, .trip-detail, .notes, .connections, .uploads, .profile-map, .profile-age, .social-links a, .file-row) {
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  .drawer, .drawer *, .drawer *::before, .drawer *::after {
    color: #111 !important;
    text-shadow: none !important;
  }
  .drawer :is(.detail-section, .identity-display, .trip-detail, .notes, .file-row, .profile-map) {
    border-color: #888 !important;
  }
  .drawer :is(dt, dd, small, .entry-note, .created, .profile-age span, .social-links small) {
    color: #222 !important;
  }
  .drawer :is(.tag, .expiry, .birthday-badge, .person-code) {
    border: 1px solid #777 !important;
    background: #fff !important;
  }
  .drawer a {
    color: #111 !important;
    text-decoration: underline;
  }
  .drawer .avatar:not(:has(img)) {
    border: 1px solid #777 !important;
    background: #fff !important;
  }
}
