/*
 * Dharma Studies dh theme – element styling for the shared modules kept in their original layout
 * (views/dharmastudies/dh/legacy_module.php). Loaded after the module view and scoped by the
 * wrapper id, so it overrides the module CSS (class selectors only) without matching each rule.
 * The layout (columns, order, positions) stays as on the legacy site, while buttons,
 * fields, cards, tabs, accordions, links and pagination take the dh component styles
 * (dh-btn, form controls, dh-row-card / faculty card, dh chips, FAQ accordion, dh-pagination).
 */

/*#region Headings and labels */
#dh-legacy-module .redf38marcellus,
#dh-legacy-module .darkf28marcellus,
#dh-legacy-module .research_accomplishment_page .nav-bar .title,
#dh-legacy-module .view_publication .main-title,
#dh-legacy-module .mmgdetail .mmg-head {
  font-family: var(--dh-font-serif);
  font-weight: 400;
  color: var(--dh-deep);
}

/* Sidebar filter headings and field labels → dh form label. */
#dh-legacy-module .refineserach .refhead,
#dh-legacy-module .refineserach .relabel,
#dh-legacy-module .uniprogramme .fillabel,
#dh-legacy-module .svvfilter-title,
#dh-legacy-module .filterPopup label,
#dh-legacy-module .filterPopup .darkf14firamd,
#dh-legacy-module .sortby-label {
  font-family: var(--dh-font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dh-cool-gray);
}
/*#endregion*/

/*#region Buttons → dh-btn */
#dh-legacy-module .svv-btn,
#dh-legacy-module .clearbtn,
#dh-legacy-module input.clearbtn,
#dh-legacy-module .uniprogramme .searchbox button {
  min-height: 2.5rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--dh-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: none;
  color: var(--dh-red);
  background: transparent;
  border: 1.5px solid rgba(var(--dh-red-rgb), 0.35);
  border-radius: 0.5rem;
  box-shadow: none;
  transition: all 0.3s var(--dh-ease);
}

#dh-legacy-module .svv-btn:hover,
#dh-legacy-module .clearbtn:hover {
  color: #fff;
  background: var(--dh-red);
  border-color: var(--dh-red);
}

#dh-legacy-module .svv-btn::before {
  display: none; /* legacy sliding fill */
}

#dh-legacy-module .svv-redbtn,
#dh-legacy-module .uniprogramme .searchbox button {
  color: #fff;
  background: var(--dh-red);
  border-color: var(--dh-red);
}

#dh-legacy-module .svv-redbtn:hover,
#dh-legacy-module .uniprogramme .searchbox button:hover {
  background: var(--dh-red-bright);
  border-color: var(--dh-red-bright);
}
/*#endregion*/

/*#region Fields → dh form controls and select2 */
#dh-legacy-module input[type="text"],
#dh-legacy-module input[type="search"]:not(.select2-search__field),
#dh-legacy-module input[type="email"],
#dh-legacy-module select,
#dh-legacy-module .form-control,
#dh-legacy-module .custom-select {
  font-family: var(--dh-font-sans);
  font-size: 0.875rem;
  color: var(--dh-dark-gray);
  background-color: #fff;
  border: 1px solid var(--dh-gray-200);
  border-radius: 0.5rem;
  box-shadow: none;
  outline: 0;
}

#dh-legacy-module input[type="text"]:focus,
#dh-legacy-module input[type="search"]:not(.select2-search__field):focus,
#dh-legacy-module select:focus,
#dh-legacy-module .form-control:focus {
  border-color: rgba(var(--dh-red-rgb), 0.5);
  box-shadow: 0 0 0 0.2rem rgba(var(--dh-red-rgb), 0.1);
}

#dh-legacy-module .select2-container--default .select2-selection--single,
#dh-legacy-module .select2-container--default .select2-selection--multiple {
  min-height: 2.5rem;
  background: #fff;
  border: 1px solid var(--dh-gray-200);
  border-radius: 0.5rem;
}

#dh-legacy-module .select2-container--default.select2-container--focus .select2-selection--multiple,
#dh-legacy-module .select2-container--default.select2-container--open .select2-selection--multiple,
#dh-legacy-module .select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(var(--dh-red-rgb), 0.5);
  box-shadow: 0 0 0 0.2rem rgba(var(--dh-red-rgb), 0.1);
}

#dh-legacy-module .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 0.4rem;
  padding: 0.15rem 0.6rem;
  font-size: 12px;
  color: var(--dh-deep);
  background: var(--dh-cream) !important; /* the legacy select2.min.css sets these with !important */
  border: 1px solid rgba(var(--dh-red-rgb), 0.12) !important;
  border-radius: 999px;
}

#dh-legacy-module .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--dh-red);
}

/* Select2 renders its dropdown at the end of <body>, outside the module wrapper. */
.dh-body .select2-container--default .select2-results__option--highlighted[aria-selected] {
  color: #fff;
  background: var(--dh-red);
}

.dh-body .select2-container--default .select2-results__option[aria-selected="true"] {
  background: var(--dh-cream);
}
/*#endregion*/

/*#region Links */
#dh-legacy-module .svv-link,
#dh-legacy-module .blue-link,
#dh-legacy-module .mviewlink,
#dh-legacy-module .uniprogramme a.view_data,
#dh-legacy-module .a_link,
#dh-legacy-module .linkbk a,
#dh-legacy-module .backtolistlink,
#dh-legacy-module .realteditems .link,
#dh-legacy-module .mmgdetail .mmgsbarlist a {
  font-family: var(--dh-font-sans);
  font-weight: 500;
  color: var(--dh-red) !important; /* master.css .svv-link is !important */
  text-decoration: none;
  transition: color 0.2s;
}

#dh-legacy-module .svv-link:hover,
#dh-legacy-module .blue-link:hover,
#dh-legacy-module .mviewlink:hover,
#dh-legacy-module .uniprogramme a.view_data:hover,
#dh-legacy-module .a_link:hover,
#dh-legacy-module .linkbk a:hover,
#dh-legacy-module .backtolistlink:hover,
#dh-legacy-module .mmgdetail .mmgsbarlist a:hover {
  color: var(--dh-red-bright) !important;
}

#dh-legacy-module .svv-link span,
#dh-legacy-module .blue-link span {
  border-bottom: 0;
}
/*#endregion*/

/*#region Cards */
/* Faculty directory results → dh faculty card (rounded, red top rule, warm body). */
#dh-legacy-module .svvuserdirectory {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(12, 9, 5, 0.08);
  border-top: 2px solid var(--dh-red);
  border-radius: 0.75rem;
  box-shadow: var(--dh-shadow-md); /* elevated: reads as a card you can open */
  transition: box-shadow 0.3s var(--dh-ease), transform 0.3s var(--dh-ease);
}

/* The legacy card outline was a shadow on the text panel; it starts 53px in, so below the photo it
   shows as a stray line. The dh card border replaces it. */
#dh-legacy-module .svvuserdirectory .svvuserdir-text {
  box-shadow: none;
}

/* Faculty cards open the profile from anywhere on the card: the name link (a.membername, faculty
   only) is stretched over the card, so the separate "View Profile" link is hidden. Contact links
   stay clickable above it. Staff cards have no profile link and stay flat on hover. */
#dh-legacy-module .svvuserdirectory {
  position: relative;
}

#dh-legacy-module .svvuserdirectory .svvuserdir-text,
#dh-legacy-module .svvuserdirectory .svvuserdir-textinner {
  position: static;
}

#dh-legacy-module .svvuserdirectory a.membername {
  position: static; /* master.css gives every link position:relative, which would size the overlay to the name */
}

#dh-legacy-module .svvuserdirectory a.membername::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

#dh-legacy-module .svvuserdirectory .svvuserdir-lists a {
  position: relative;
  z-index: 2;
}

#dh-legacy-module .svvuserdirectory .svvuserdir-img .text-center {
  display: none; /* View Profile */
}

/* faculty.css reserves 300px for the 230px photo plus that link; with the link gone, match the
   photo (desktop only: below 768px the photo stacks above the text and min-height is 0). */
@media (min-width: 768px) {
  #dh-legacy-module .svvuserdirectory .svvuserdirinner .svvuserdir-text {
    min-height: 230px;
  }

  /* Cards with more text grow taller than the photo: stretch the photo column to the card
     height (image fills it, the FACULTY strip stays at the bottom) so no gap shows below it. */
  #dh-legacy-module .svvuserdirectory .svvuserdirinner .svvuserdir-img {
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    height: auto;
  }

  #dh-legacy-module .svvuserdirectory .svvuserdirinner .svvuserdir-img img {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
}

#dh-legacy-module .svvuserdirectory:has(a.membername):hover {
  box-shadow: var(--dh-shadow-lg), 0 12px 28px rgba(12, 9, 5, 0.08);
  transform: translateY(-3px);
  cursor: pointer;
}

#dh-legacy-module .svvuserdirectory:has(a.membername:focus-visible) {
  outline: 2px solid var(--dh-red);
  outline-offset: 3px;
}

#dh-legacy-module .svvuserdirectory a.membername:focus-visible {
  outline: 0;
}

@media (prefers-reduced-motion: reduce) {
  #dh-legacy-module .svvuserdirectory:has(a.membername):hover {
    transform: none;
  }
}

#dh-legacy-module .svvuserdirectory .membername p,
#dh-legacy-module .svvuserdirectory .darkf20firamd {
  font-family: var(--dh-font-serif);
  font-weight: 400;
  color: var(--dh-deep);
}

#dh-legacy-module .svvuserdirectory .svvuserdirinner .svvuserdir-img .facultybox {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(12, 9, 5, 0.72);
}

#dh-legacy-module .svvuserdirectory .svvuserdirinner .svvuserdir-img .facultybox.staffbox {
  background: var(--dh-teal);
}

/* Citation rows (accomplishments, publication related items, profile research lists) → dh-row-card. */
#dh-legacy-module .links-re {
  background: var(--dh-cream);
  border: 1px solid rgba(var(--dh-red-rgb), 0.06);
  border-radius: 0.75rem;
  box-shadow: none;
  transition: border-color 0.2s;
}

#dh-legacy-module a:hover > .links-re,
#dh-legacy-module .links-re:hover {
  border-color: var(--dh-red);
}

/* Major/minor field cards. */
#dh-legacy-module .uniprogramme .list_weap {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(12, 9, 5, 0.08);
  border-top: 2px solid var(--dh-red);
  border-radius: 0.75rem;
  box-shadow: none;
  transition: box-shadow 0.3s var(--dh-ease);
}

#dh-legacy-module .uniprogramme .list_weap:hover {
  box-shadow: var(--dh-shadow-lg);
}

#dh-legacy-module .uniprogramme .gridprog_name {
  font-family: var(--dh-font-serif);
  font-weight: 400;
  color: var(--dh-deep);
}

/* Major/minor "Know More" popup (.bigmodal): a centred dialog that fits the screen, its body
   scrolls, and the close button stays in the corner. programme.css sets 90% width with
   !important, no margin and a red square close button (also !important). */
#dh-legacy-module .bigmodal {
  margin-top: 0;
}

#dh-legacy-module .bigmodal .modal-dialog {
  max-width: min(960px, calc(100% - 2rem)) !important;
  margin: 2rem auto;
}

#dh-legacy-module .bigmodal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 4rem);
  overflow: hidden;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

#dh-legacy-module .bigmodal .modal-header {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  padding: 0;
  border: 0;
}

#dh-legacy-module .bigmodal .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* The banner row sits directly in the unpadded body: drop its gutter so it doesn't overflow
   sideways (Bootstrap 4's 1rem body padding used to absorb the row's -15px margins). */
#dh-legacy-module .bigmodal .top_section > .row {
  margin-right: 0;
  margin-left: 0;
}

#dh-legacy-module .bigmodal .top_section > .row > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

#dh-legacy-module .bigmodal .close {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-family: var(--dh-font-sans);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--dh-deep) !important;
  text-shadow: none;
  background: #fff !important;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: background-color 0.2s, color 0.2s;
}

#dh-legacy-module .bigmodal .close:hover,
#dh-legacy-module .bigmodal .close:focus-visible {
  color: #fff !important;
  background: var(--dh-red) !important;
}

@media (max-width: 767.98px) {
  #dh-legacy-module .bigmodal .modal-dialog {
    margin: 1rem auto;
  }

  #dh-legacy-module .bigmodal .modal-content {
    max-height: calc(100vh - 2rem);
  }
}
/*#endregion*/

/*#region Tabs → dh chips */
#dh-legacy-module .custom_tab.nav-tabs {
  gap: 0.5rem;
  border-bottom: 0;
}

/* faculty.css sizes these as 60px-tall tabs (li 40px, a height/line-height 60px, 50px below
   1024px): reset that so they are compact dh pills with centred text. */
#dh-legacy-module .custom_tab.nav-tabs > li {
  height: auto;
  line-height: normal;
}

#dh-legacy-module .custom_tab.nav-tabs > li > a {
  display: inline-flex;
  align-items: center;
  height: auto;
  line-height: 1.35;
  padding: 0.6rem 1.1rem;
  font-family: var(--dh-font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dh-cool-gray);
  background: #fff;
  border: 1px solid var(--dh-gray-200);
  border-radius: 999px;
}

#dh-legacy-module .custom_tab.nav-tabs > li > a:hover {
  color: var(--dh-red);
  border-color: rgba(var(--dh-red-rgb), 0.45);
}

#dh-legacy-module .custom_tab.nav-tabs > li.active > a,
#dh-legacy-module .custom_tab.nav-tabs > li > a.active {
  color: #fff;
  background: var(--dh-red);
  border-color: var(--dh-red);
}

/* Below 768px the tabs become a full-width dropdown list: rounded rows, not pills. */
@media (max-width: 767px) {
  #dh-legacy-module .custom_tab.nav-tabs > li > a {
    border-radius: 0.5rem;
  }
}
/*#endregion*/

/*#region Accordions → dh FAQ accordion */
#dh-legacy-module .faculty_accordion .panel.card {
  margin-bottom: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(12, 9, 5, 0.11);
  border-radius: 0;
  box-shadow: none;
}

#dh-legacy-module .faculty_accordion .panel-heading.card-header {
  padding: 0;
  background: transparent;
  border: 0;
}

#dh-legacy-module .faculty_accordion .panel-title > a.btn-link {
  box-shadow: none; /* legacy shadow on the open item's header */
  padding: 1rem 0;
  font-family: var(--dh-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dh-deep);
  background: transparent;
  text-decoration: none;
}

#dh-legacy-module .faculty_accordion .panel-title > a.btn-link::after,
#dh-legacy-module .faculty_accordion .panel-title > a.btn-link::before {
  color: var(--dh-red);
}

#dh-legacy-module .faculty_accordion .panel-body.card-body {
  padding: 0 0 1.25rem;
}
/*#endregion*/

/*#region Pagination → dh-pagination */
#dh-legacy-module .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

#dh-legacy-module .pagination a,
#dh-legacy-module .pagination b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  font-family: var(--dh-font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--dh-cool-gray);
  background: #fff;
  border: 1px solid var(--dh-gray-200);
  border-radius: 999px;
  transition: all 0.2s;
}

#dh-legacy-module .pagination a:hover,
#dh-legacy-module .pagination b {
  color: #fff;
  background: var(--dh-red);
  border-color: var(--dh-red);
}
/*#endregion*/

/*#region Major/minor toolbar: legend, search and list/grid toggle (same structure, dh elements) */
#dh-legacy-module .uniprogramme .catewrap {
  padding: 1.5rem 1.75rem;
  background: var(--dh-cream);
  border: 1px solid rgba(var(--dh-red-rgb), 0.06);
  border-radius: 0.75rem;
}

#dh-legacy-module .uniprogramme .cateminorp {
  margin-bottom: 1rem;
  font-family: var(--dh-font-serif);
  font-size: 22px;
  color: var(--dh-deep);
}

/* Legend items → dh pills around the field badges (the badges are the M/m/G/... codes). */
#dh-legacy-module .uniprogramme .catewrap ul.minor-type {
  gap: 0.5rem;
  border: 0;
}

#dh-legacy-module .uniprogramme .catewrap ul.minor-type li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  margin: 0;
  padding: 0.3rem 0.85rem 0.3rem 0.45rem;
  font-family: var(--dh-font-sans);
  font-size: 13px;
  color: var(--dh-cool-gray);
  background: #fff;
  border: 1px solid var(--dh-gray-200);
  border-radius: 999px;
}

/* Search → one joined dh field: input and button share a height and radius. */
#dh-legacy-module .uniprogramme .mmgsearch .fiiterrow {
  margin-top: 0; /* line the list/grid toggle up with the search field */
}

#dh-legacy-module .mmgsearch .searchbox {
  display: flex;
  align-items: stretch;
}

#dh-legacy-module .mmgsearch .searchbox input[type="text"] {
  flex: 1 1 auto;
  width: auto !important; /* programme.css: 94% / 85% !important for the float layout */
  height: 2.75rem;
  margin: 0;
  padding: 0 1rem;
  font-size: 0.875rem;
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
}

#dh-legacy-module .mmgsearch .searchbox button {
  flex: 0 0 3.25rem;
  float: none;
  height: 2.75rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* List / grid toggle → dh label and a segmented pair; the current view is .avoid-clicks. */
#dh-legacy-module .uniprogramme .optionview1 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  width: auto;
  top: 0; /* programme.css nudges it 4px down */
}

#dh-legacy-module .uniprogramme .list-grid-text {
  font-family: var(--dh-font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dh-cool-gray);
}

#dh-legacy-module .uniprogramme .display_tab {
  display: inline-flex;
  top: 0;
  overflow: hidden;
  border: 1px solid var(--dh-gray-200);
  border-radius: 0.5rem;
}

#dh-legacy-module .uniprogramme .display_tab .showSingle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

#dh-legacy-module .uniprogramme .display_tab .showSingle + .showSingle {
  border-left: 1px solid var(--dh-gray-200);
}

#dh-legacy-module .uniprogramme .display_tab .showSingle img {
  width: 1.1rem;
  height: 1.1rem;
  filter: grayscale(1) brightness(0.45); /* the svgs are coloured; show them neutral */
}

#dh-legacy-module .uniprogramme .display_tab .showSingle:hover {
  background: var(--dh-cream);
}

#dh-legacy-module .uniprogramme .display_tab .showSingle.avoid-clicks {
  background: var(--dh-red);
}

#dh-legacy-module .uniprogramme .display_tab .showSingle.avoid-clicks img {
  filter: brightness(0) invert(1);
}
/*#endregion*/

/*#region Major/minor: remaining legacy accents (sidebar rules, list table, popup panel and text) */
#dh-legacy-module .uniprogramme .mmg_parents,
#dh-legacy-module .uniprogramme .mmg_childs,
#dh-legacy-module .uniprogramme .eventtab_sp {
  border-color: var(--dh-gray-200);
}

#dh-legacy-module .uniprogramme .protable,
#dh-legacy-module .uniprogramme .protable tr,
#dh-legacy-module .uniprogramme .protable td {
  border-color: var(--dh-gray-200);
}

#dh-legacy-module .uniprogramme .protable td {
  font-family: var(--dh-font-sans);
  color: var(--dh-dark-gray);
}

#dh-legacy-module .uniprogramme .protable tr:hover td {
  background: var(--dh-warm-white);
}

/* "Know More" popup: quick-links panel → dh aside card, body copy → dh rich text. */
#dh-legacy-module .mmgdetail .mmgright {
  background: var(--dh-cream);
  border-radius: 0.75rem;
}

#dh-legacy-module .mmgdetail .mmgsbar {
  font-family: var(--dh-font-serif);
  font-size: 20px;
  color: var(--dh-deep);
}

#dh-legacy-module .mmgdetail p,
#dh-legacy-module .mmgdetail li {
  color: var(--dh-cool-gray);
  line-height: 1.8;
}

#dh-legacy-module .mmgdetail .dist-head-sec h2,
#dh-legacy-module .mmgdetail .dist-head-sec h3,
#dh-legacy-module .mmgdetail .dist-head-sec h4 {
  font-family: var(--dh-font-serif);
  font-weight: 400;
  color: var(--dh-deep);
}
/*#endregion*/

/*#region Faculty directory: search field, sort control, results column, card text */
/* Search (input + icon button in a legacy input group) → one dh field. */
#dh-legacy-module .stylish-input-group {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dh-gray-200);
  border-radius: 0.5rem;
}

#dh-legacy-module .stylish-input-group:focus-within {
  border-color: rgba(var(--dh-red-rgb), 0.5);
  box-shadow: 0 0 0 0.2rem rgba(var(--dh-red-rgb), 0.1);
}

#dh-legacy-module .stylish-input-group .form-control,
#dh-legacy-module .stylish-input-group .input-group-addon,
#dh-legacy-module .stylish-input-group button {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Sort by → dh select. */
#dh-legacy-module .depatmentsort .drop_list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dh-gray-200);
  border-radius: 0.5rem;
}

#dh-legacy-module .depatmentsort .drop_list select {
  font-size: 0.8125rem;
  color: var(--dh-dark-gray);
  background-color: transparent;
  border: 0;
  border-radius: 0;
}

#dh-legacy-module .refine-result,
#dh-legacy-module .svvuserdirectory .svvuserdirinner {
  border-color: var(--dh-gray-200);
}

/* Card text: designation, contact rows and their icons in dh text colours. */
#dh-legacy-module .svvuserdirectory a.membername {
  color: var(--dh-deep);
}

#dh-legacy-module .svvuserdirectory .svvuserdir-textinner .darkf14firamd {
  color: var(--dh-dark-gray);
}

#dh-legacy-module .svvuserdirectory .svvuserdir-lists li {
  color: var(--dh-cool-gray);
}

#dh-legacy-module .svvuserdirectory .svvuserdir-lists i {
  color: var(--dh-red);
}

/* "View Profile »": master.css colours the arrow span with !important. */
#dh-legacy-module .svv-link span {
  color: inherit !important;
}

#dh-legacy-module .svvuserdirectory .svvuserdir-lists a:not(.svv-link) {
  color: var(--dh-cool-gray);
}

#dh-legacy-module .svvuserdirectory .svvuserdir-lists a:not(.svv-link):hover {
  color: var(--dh-red);
}

#dh-legacy-module .depatmentsort .label_title {
  font-family: var(--dh-font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dh-cool-gray);
}

#dh-legacy-module .pagination .of_result {
  font-size: 12px;
  color: var(--dh-cool-gray);
}
/*#endregion*/

/*#region Faculty profile (view-member): header, photo card, sidebar, login, accordion panels */
#dh-legacy-module .darkf22firarg {
  font-family: var(--dh-font-sans);
  color: var(--dh-cool-gray);
}

#dh-legacy-module .viewmember-share .fclabel {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dh-cool-gray);
}

/* Share icons → dh outlined round buttons (as on dh event pages). */
#dh-legacy-module .viewmember-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--dh-red);
  background: transparent;
  border: 1px solid rgba(var(--dh-red-rgb), 0.3);
  border-radius: 50%;
  transition: all 0.2s;
}

#dh-legacy-module .viewmember-icons a i {
  color: inherit;
  background: transparent;
}

/* faculty.css draws .fa-twitter from a "twitter" icon font the dh layout does not load:
   use Font Awesome 6's X logo. */
#dh-legacy-module .viewmember-icons .fa-twitter::before {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  content: "\e61b";
}

#dh-legacy-module .viewmember-icons a:hover {
  color: #fff;
  background: var(--dh-red);
  border-color: var(--dh-red);
}

/* Photo with its "Faculty" caption → one rounded card. */
#dh-legacy-module .view_profile img {
  border-radius: 0.75rem 0.75rem 0 0;
}

#dh-legacy-module .view_profile .view_profile_desgn {
  font-family: var(--dh-font-serif);
  font-weight: 400;
  color: var(--dh-deep);
  background: var(--dh-cream);
  border-radius: 0 0 0.75rem 0.75rem;
}

/* Sidebar details: the <li> text is the label, the <h6>/<p> inside is the value. */
#dh-legacy-module .cdfinfo li {
  font-family: var(--dh-font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dh-cool-gray);
}

#dh-legacy-module .cdfinfo li h6,
#dh-legacy-module .cdfinfo li p {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dh-dark-gray);
}

#dh-legacy-module .cdfinfo li p span {
  color: var(--dh-cool-gray);
}

#dh-legacy-module .cdfinfo .text-underline {
  color: var(--dh-red);
  text-decoration: none;
}

/* Faculty Login → dh outline button. */
#dh-legacy-module .login_btn a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dh-red);
  background: transparent;
  border: 1.5px solid rgba(var(--dh-red-rgb), 0.35);
  border-radius: 0.5rem;
  transition: all 0.3s var(--dh-ease);
}

/* The icon sits in a grey square (span.more-icon) → dh red square. */
#dh-legacy-module .login_btn .more-icon {
  position: static; /* legacy: pinned over the right edge */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  background: var(--dh-red);
  border-radius: 0.35rem;
}

#dh-legacy-module .login_btn .more-icon img {
  width: 1rem;
  height: 1rem;
}

#dh-legacy-module .login_btn a {
  padding-top: 0.35rem;
  padding-right: 0.35rem;
  padding-bottom: 0.35rem;
}

#dh-legacy-module .login_btn a:hover {
  color: #fff;
  background: var(--dh-red);
  border-color: var(--dh-red);
}

/* Accordion body copy and the login note → dh body text. */
#dh-legacy-module .faculty_accordion .panel-body,
#dh-legacy-module .faculty_accordion .panel-body p,
#dh-legacy-module .login_btn p {
  color: var(--dh-cool-gray);
}

/* Open accordion panels: no boxed shadow (dh FAQ accordion is flat). */
#dh-legacy-module .faculty_accordion .panel,
#dh-legacy-module .faculty_accordion .panel-collapse,
#dh-legacy-module .faculty_accordion .panel-body {
  border: 0;
  box-shadow: none;
}

/* Citation rows: dh text colours (authors in deep, the rest in dark grey). */
#dh-legacy-module .links-re,
#dh-legacy-module .links-re p,
#dh-legacy-module .links-re i {
  color: var(--dh-dark-gray);
}

#dh-legacy-module .links-re b {
  color: var(--dh-deep);
}
/*#endregion*/
