@charset "UTF-8";
/* CSS Document */

.mfd-directory {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 0;
}

.mfd-directory .mfd-header h2 {
  margin: 0 0 6px;
}

.mfd-directory .mfd-header p {
  margin: 0 0 14px;
}

.mfd-directory .mfd-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: end;
  padding: 10px 0 14px;
  border-bottom: 1px solid #ddd;
}

.mfd-directory .mfd-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.mfd-directory .mfd-actions {
  display: flex;
  align-items: end;
}

.mfd-directory .mfd-label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
}

.mfd-directory .mfd-controls select {
  text-transform: uppercase;
  min-width: 220px;
  padding: 10px;
  background: #fff;
  color: #111;
  border: 1px solid #b9bcc2;
}

.mfd-directory .mfd-reset {
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid #b9bcc2;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.mfd-directory .mfd-count {
  margin: 12px 0;
  color: #333;
}

.mfd-directory .mfd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  row-gap: 24px;
  margin-top: 12px;
  overflow: hidden;
}

.mfd-directory .mfd-card {
  background: #f7f8fa;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  height: 100%;
}

.mfd-directory .mfd-photo {
  display: flex;
  justify-content: center;
  padding: 12px 18px 0;
}

.mfd-directory .mfd-meta {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
}

.mfd-directory .mfd-photo img {
  width: 160px;
  height: 160px;
  min-height:160px;
  min-width:160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.mfd-directory .mfd-name {
  margin: 0 0 4px;
  font-size: 16px;
  color: black;
  text-align:center;
}

.mfd-directory .mfd-job-title {
  margin: 0 0 8px;
  color: #333;
  text-align: center;
}

.mfd-directory .mfd-tags {
  margin: 0 0 10px;
  color: #666;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
}

.mfd-contact,
.mfd-job-title {
  font-size: 14.5px;
}

.mfd-directory .mfd-bio-btn {
  margin-top: auto;
  width: 100%;
  padding: 10px 12px !important;
}

.mfd-directory .mfd-hidden {
  display: none !important;
}


.mfd-speciality, .mfd-discipline {
  margin:0;
  font-size: 15px;
  text-align:center;
}

.mfd-discipline {
  font-weight:bold;
  text-align-last: center;
  margin-bottom: 3px;
  }
  
.mfd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.mfd-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mfd-modal .mfd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mfd-modal .mfd-modal-panel {
  position: relative;
  max-width: 820px;
  margin: 6vh auto;
  max-height: 88vh;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.mfd-modal[aria-hidden="false"] .mfd-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mfd-modal .mfd-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 50px;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #c40000;
}

.mfd-modal .mfd-modal-photo {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.mfd-modal .mfd-modal-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ── Card ── */
.mfd-card {
  border: 1px solid #ccc;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

/* ── Name ── */
.mfd-name {
  font-family: 'Bree Serif', serif;
  font-size: 1rem;
  margin: 0 0 4px;
}

/* ── Meta fields ── */
.mfd-meta p {
  margin: 0 0 2px;
  line-height: 1.4;
}

.mfd-role,
.mfd-discipline,
.mfd-speciality {
  font-size: 1.3rem;
  color: #555;
}

/* ── Divider before contact info ── */
.mfd-role + .mfd-contact,
.mfd-speciality + .mfd-contact,
.mfd-discipline + .mfd-contact,
.mfd-job-title + .mfd-contact {
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 10px;
}

/* ── Contact lines ── */
.mfd-contact {
  font-size: 1.3rem;
  margin: 0 0 3px;
}

.mfd-contact a {
  color: #b35200;
  text-decoration: none;
  word-break: break-all;
}

.mfd-contact a:hover {
  text-decoration: underline;
}

/* ── Button ── */
.mfd-bio-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;  /* changed from auto */
  padding: 8px 0;
  text-align: center;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1.5px solid #d45a1e;
  color: #d45a1e;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}

.mfd-contact:last-of-type {
  margin-bottom: 16px;
}

.mfd-bio-btn:hover {
  background: #d45a1e;
  color: #fff;
  text-decoration: none;
}