/**
 * Our Team Member — filters matched to SL Nusbaum buildout-filter bar
 */

/* Hide legacy layout until JS builds the enhanced directory (prevents FOUC). */
body.otm-enhanced-directory:not(.otm-directory-ready) .employee-list-block .buildout-filter:not(.otm-enhanced-filter) {
	display: none !important;
}

body.otm-enhanced-directory:not(.otm-directory-ready) .employee-list-block .document-list,
body.otm-enhanced-directory:not(.otm-directory-ready) .employee-list-block .list-count {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

body.otm-enhanced-directory.otm-directory-ready .employee-list-block .document-list,
body.otm-enhanced-directory.otm-directory-ready .employee-list-block .list-count {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.2s ease;
}

body.otm-meet-the-team .employee-list-block.otm-ajax-loading .document-list {
	opacity: 0.55;
	pointer-events: none;
}

/* Meet the Team shell: kill Bootstrap wrapper gutters so filter/grid match old Buildout spacing */
body.otm-meet-the-team #meet-the-team-wrapper {
	margin: 0;
	padding: 0;
	max-width: 100%;
}

body.otm-meet-the-team #meet-the-team-wrapper > .blocks-wrapper,
body.otm-meet-the-team #meet-the-team-wrapper > .blocks-wrapper.container-fluid {
	margin: 0 !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
}

body.otm-meet-the-team #meet-the-team-wrapper > .blocks-wrapper > .row {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.otm-meet-the-team #meet-the-team-wrapper > .blocks-wrapper > .row > [class*="col-"] {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.otm-meet-the-team .otm-meet-the-team-article,
body.otm-meet-the-team .otm-meet-the-team-article.page {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100%;
}

body.otm-meet-the-team #primary,
body.otm-meet-the-team #main,
body.otm-meet-the-team .site-main {
	margin: 0 !important;
	padding: 0 !important;
}

/* Match Our Legacy page hero height (80vh, min 420px, max 900px). */
body.otm-enhanced-directory #masthead,
body.otm-enhanced-directory #wrapper-navbar,
body.otm-large-format-header #masthead,
body.otm-large-format-header #wrapper-navbar {
  max-width: 100%;
  width: 100%;
}

body.otm-enhanced-directory .custom-header-media.large-format,
body.otm-large-format-header .custom-header-media.large-format {
  display: block;
  height: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-height: none !important;
  overflow: hidden;
  position: relative;
  width: 100vw;
  max-width: 100vw;
}

body.otm-enhanced-directory .custom-header-media.large-format::before,
body.otm-large-format-header .custom-header-media.large-format::before {
  background: linear-gradient(
    180deg,
    rgba(18, 35, 68, 0.55) 0%,
    rgba(18, 35, 68, 0.08) 50%,
    rgba(18, 35, 68, 0.35) 100%
  ) !important;
  height: 100% !important;
  opacity: 1 !important;
  z-index: 2;
}

body.otm-enhanced-directory #wp-custom-header,
body.otm-large-format-header #wp-custom-header {
  background: #0a1628;
  height: 80vh;
  max-height: 900px;
  min-height: 420px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

body.otm-enhanced-directory #wp-custom-header img,
body.otm-large-format-header #wp-custom-header img {
  border: 0;
  height: 56.25vw;
  left: 50%;
  max-width: none;
  min-height: 100%;
  min-width: 177.78vh;
  object-fit: cover;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: 100vw;
}

@media (max-width: 991px) {
  body.otm-enhanced-directory #wp-custom-header,
  body.otm-large-format-header #wp-custom-header {
    height: 240px;
    max-height: 240px;
    min-height: 240px;
  }

  body.otm-enhanced-directory #wp-custom-header img,
  body.otm-large-format-header #wp-custom-header img {
    height: 100%;
    min-height: 100%;
    min-width: 100%;
    width: 100%;
  }

  /* Keep page title clear of sticky logo on mobile/tablet. */
  body.otm-enhanced-directory .custom-header-media.large-format .otm-hero-caption,
  body.otm-large-format-header .custom-header-media.large-format .otm-hero-caption {
    align-items: flex-end;
    justify-content: center;
    padding: 5rem 1rem 1.1rem;
  }

  body.otm-enhanced-directory .otm-hero-caption .blue-background-block,
  body.otm-enhanced-directory .otm-hero-caption .otm-hero-heading,
  body.otm-large-format-header .otm-hero-caption .blue-background-block,
  body.otm-large-format-header .otm-hero-caption .otm-hero-heading {
    padding: 0.7rem 1rem !important;
    max-width: calc(100% - 0.5rem);
  }

  body.otm-enhanced-directory .otm-hero-caption .blue-background-block h1,
  body.otm-enhanced-directory .otm-hero-caption .blue-background-block h2,
  body.otm-enhanced-directory .otm-hero-caption .otm-hero-heading h2,
  body.otm-large-format-header .otm-hero-caption .blue-background-block h1,
  body.otm-large-format-header .otm-hero-caption .blue-background-block h2,
  body.otm-large-format-header .otm-hero-caption .otm-hero-heading h2 {
    font-size: 1.35rem !important;
    letter-spacing: 0.05em;
    line-height: 1.15 !important;
  }

  body.otm-x-team-page .otm-hero-caption .otm-hero-subheading,
  body.otm-x-team-page .otm-hero-caption .blue-background-block p {
    display: none !important;
  }

  /* Extra breathing room for X Team intro content on small screens. */
  body.otm-x-team-page .entry-content.blocks,
  body.otm-x-team-page .blocks-wrapper .entry-content {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  body.otm-x-team-page .entry-content.blocks img,
  body.otm-x-team-page .entry-content.blocks .alignnone,
  body.otm-x-team-page .entry-content.blocks .wp-caption {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 767px) {
  body.otm-enhanced-directory #wp-custom-header,
  body.otm-large-format-header #wp-custom-header {
    height: 200px;
    max-height: 200px;
    min-height: 200px;
  }

  body.otm-enhanced-directory .custom-header-media.large-format .otm-hero-caption,
  body.otm-large-format-header .custom-header-media.large-format .otm-hero-caption {
    padding: 4.5rem 0.85rem 0.9rem;
  }

  body.otm-enhanced-directory .otm-hero-caption .blue-background-block h1,
  body.otm-enhanced-directory .otm-hero-caption .blue-background-block h2,
  body.otm-enhanced-directory .otm-hero-caption .otm-hero-heading h2,
  body.otm-large-format-header .otm-hero-caption .blue-background-block h1,
  body.otm-large-format-header .otm-hero-caption .blue-background-block h2,
  body.otm-large-format-header .otm-hero-caption .otm-hero-heading h2 {
    font-size: 1.15rem !important;
  }
}

/* Banner heading overlay (Our Legacy–style). */
body.otm-enhanced-directory .custom-header-media.large-format .otm-hero-caption,
body.otm-large-format-header .custom-header-media.large-format .otm-hero-caption {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 6.5rem 1.25rem 2rem;
  pointer-events: none;
  position: absolute;
  text-align: center;
  z-index: 4;
}

body.otm-enhanced-directory .otm-hero-caption .blue-background-block,
body.otm-enhanced-directory .otm-hero-caption .otm-hero-heading,
body.otm-large-format-header .otm-hero-caption .blue-background-block,
body.otm-large-format-header .otm-hero-caption .otm-hero-heading {
  background: rgb(18 35 70 / 70%) !important;
  color: #fff;
  left: auto !important;
  line-height: 1.35;
  margin: 0 !important;
  max-width: 920px;
  padding: 2rem !important;
  position: static !important;
  top: auto !important;
  width: 100%;
  z-index: auto;
}

body.otm-enhanced-directory .otm-hero-caption .blue-background-block::before,
body.otm-enhanced-directory .otm-hero-caption .otm-hero-heading::before,
body.otm-large-format-header .otm-hero-caption .blue-background-block::before,
body.otm-large-format-header .otm-hero-caption .otm-hero-heading::before {
  display: none !important;
}

body.otm-enhanced-directory .otm-hero-caption .blue-background-block h1,
body.otm-enhanced-directory .otm-hero-caption .blue-background-block h2,
body.otm-enhanced-directory .otm-hero-caption .otm-hero-heading h2,
body.otm-large-format-header .otm-hero-caption .blue-background-block h1,
body.otm-large-format-header .otm-hero-caption .blue-background-block h2,
body.otm-large-format-header .otm-hero-caption .otm-hero-heading h2 {
  color: #fff !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: clamp(2rem, 5vw, 3.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  line-height: 1.08;
  margin: 0 !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65);
  text-transform: uppercase !important;
}

body.otm-enhanced-directory .otm-hero-caption .blue-background-block p,
body.otm-enhanced-directory .otm-hero-caption .otm-hero-subheading,
body.otm-large-format-header .otm-hero-caption .blue-background-block p,
body.otm-large-format-header .otm-hero-caption .otm-hero-subheading {
  color: #fff !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: clamp(1rem, 2.2vw, 1.25rem) !important;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.45;
  margin: 0 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  text-transform: none;
}

body.otm-enhanced-directory .otm-hero-caption h2 + p.otm-hero-subheading,
body.otm-large-format-header .otm-hero-caption h2 + p.otm-hero-subheading {
  margin-top: 0.75rem !important;
}

body.otm-enhanced-directory .otm-hero-caption p.otm-hero-subheading + p.otm-hero-subheading,
body.otm-large-format-header .otm-hero-caption p.otm-hero-subheading + p.otm-hero-subheading {
  margin-top: 0.35rem !important;
  font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
  opacity: 0.95;
}

body.otm-enhanced-directory #text-block-0,
body.otm-enhanced-directory #text-block-0.otm-hero-heading-moved {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

body.otm-x-team-page .entry-header {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  visibility: hidden !important;
}

body.otm-x-team-page .entry-header .entry-title {
  display: none !important;
}

body.otm-enhanced-directory #primary,
body.otm-enhanced-directory #content,
body.otm-enhanced-directory .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.otm-enhanced-directory .custom-header-media.large-format {
  margin-bottom: 0 !important;
}

.otm-enhanced-directory .employee-list-block > .block-content > style {
  display: none !important;
}

/* Replaces legacy filter in-place — flush under banner */
.otm-enhanced-directory .buildout-filter.otm-enhanced-filter {
  background: #1e3665;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 2.5rem !important;
  padding-top: 2.5rem !important;
  width: 100%;
}

.otm-enhanced-directory .employee-list-block {
  --otm-navy: #122346;
  --otm-navy-mid: #19305e;
  --otm-plum: #122346;
  --otm-card-radius: 12px;
  background: #f7f9fc;
  margin-top: 0 !important;
  padding: 0 0 4.5rem;
}

.otm-enhanced-directory .employee-list-block > .block-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Centered 950px filter content — same breathing room as original Buildout bar */
.otm-enhanced-directory .otm-enhanced-filter .container-950,
.otm-enhanced-filter .container-950 {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 950px;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.otm-enhanced-directory .otm-filter-top.row {
  margin-left: -15px;
  margin-right: -15px;
}

.otm-enhanced-directory .otm-filter-top > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

.otm-filter-top {
  margin-bottom: 0;
}

.otm-filter-top .col-md-6 {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .otm-filter-top .col-md-6 + .col-md-6 {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .otm-filter-top .col-md-6 {
    margin-bottom: 0;
  }
}

.otm-enhanced-filter label.otm-label {
  color: #fff;
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.otm-search-input {
  background: #fff;
  border: none;
  border-radius: 3px;
  box-sizing: border-box;
  color: #122346;
  font-size: 1rem;
  height: 40px;
  padding: 0.5em 1em;
  width: 100%;
}

.otm-search-input::placeholder {
  color: #8a96a8;
}

.otm-search-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  outline: none;
}

/* Division dropdown — same feel as original */
.otm-division-select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2319305e' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: none;
  border-radius: 3px;
  box-sizing: border-box;
  color: #122346;
  cursor: pointer;
  font-size: 1rem;
  height: 40px;
  padding: 0.5em 2.25em 0.5em 1em;
  width: 100%;
}

.otm-division-select:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  outline: none;
}

.otm-division-select optgroup {
  color: #122346;
  font-weight: 700;
}

.otm-division-select option {
  color: #122346;
  font-weight: 400;
}

.otm-division-select option.otm-division-option--nested {
  padding-left: 1rem;
}

.otm-division-select option:disabled {
  color: rgba(18, 35, 68, 0.35);
  display: none;
}

/* Meta row */
.otm-filter-meta {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  margin-top: 1.15rem;
  padding-top: 1rem;
}

.otm-results-count {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9375rem;
  font-weight: 500;
}

.otm-results-count strong {
  color: #fff;
  font-weight: 700;
}

.otm-clear-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.45rem 1rem;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}

.otm-clear-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.otm-active-tags {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
  order: 3;
}

.otm-active-tags:empty {
  display: none;
}

.otm-tag {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
}

.otm-tag:hover {
  background: rgba(255, 255, 255, 0.28);
}

.otm-tag svg {
  height: 0.7rem;
  opacity: 0.85;
  width: 0.7rem;
}

/* —— Team member grid & cards —— */
.otm-enhanced-directory .employee-list-block .block-content > .container,
.otm-enhanced-directory .employee-list-block .block-content > .container-fluid {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 2rem;
  width: 100%;
}

.otm-enhanced-directory .employee-list-block .list-count {
  color: #8a96a8;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: center;
  text-transform: uppercase;
}

.otm-enhanced-directory .employee-list-block .list-count.otm-count-updated {
  color: var(--otm-navy-mid);
}

/* Override Bootstrap row/col from legacy inline block styles */
.otm-enhanced-directory .employee-list-block .document-list,
.otm-enhanced-directory .employee-list-block .document-list.row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  height: auto !important;
  margin: 0 auto !important;
  max-width: 1280px;
  overflow: visible !important;
  padding: 0 0 1rem !important;
  width: 100% !important;
}

.otm-enhanced-directory .employee-list-block .document-list::before,
.otm-enhanced-directory .employee-list-block .document-list::after {
  display: none !important;
}

.otm-enhanced-directory .document-list .team-member,
.otm-enhanced-directory .document-list .team-member[class*="col-"] {
  flex: none !important;
  float: none !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.otm-enhanced-directory .document-list .team-member.otm-hidden {
  display: none !important;
}

.otm-enhanced-directory .document-list .team-member.otm-member-card {
  background: #fff;
  border: 1px solid rgba(25, 48, 94, 0.12);
  border-radius: var(--otm-card-radius);
  box-shadow: 0 8px 28px rgba(18, 35, 68, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 1;
  overflow: hidden;
  position: relative;
  transform: translateY(0);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.otm-enhanced-directory .document-list .team-member.otm-member-card:hover,
.otm-enhanced-directory .document-list .team-member.otm-member-card:focus-within {
  border-color: rgba(18, 35, 70, 0.35);
  box-shadow: 0 16px 40px rgba(18, 35, 68, 0.14);
  transform: translateY(-6px);
}

.otm-enhanced-directory .otm-member-card__link {
  color: inherit;
  display: block;
  height: 100%;
  text-decoration: none;
}

.otm-enhanced-directory .otm-member-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.otm-enhanced-directory .otm-member-card__media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #e9eef6 0%, #d5deea 100%);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.otm-enhanced-directory .otm-member-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 400ms ease;
  width: 100%;
}

.otm-enhanced-directory .otm-member-card__media--placeholder img,
.otm-enhanced-directory .otm-member-card__media img.otm-placeholder-photo,
.otm-enhanced-directory .otm-member-card__media img[src*="Profile-Photo-N"] {
  object-fit: cover;
  object-position: center center;
}

.otm-enhanced-directory .team-member:hover .otm-member-card__media img,
.otm-enhanced-directory .team-member:focus-within .otm-member-card__media img {
  transform: scale(1.04);
}

.otm-enhanced-directory .team-member:hover .otm-member-card__media--placeholder img,
.otm-enhanced-directory .team-member:focus-within .otm-member-card__media--placeholder img,
.otm-enhanced-directory .team-member:hover .otm-member-card__media img.otm-placeholder-photo,
.otm-enhanced-directory .team-member:focus-within .otm-member-card__media img.otm-placeholder-photo {
  transform: none;
}

.otm-enhanced-directory .otm-member-card__body {
  align-items: stretch;
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  padding: 1.2rem 1.15rem 1.35rem;
  text-align: center;
}

.otm-enhanced-directory .otm-member-card__body h4,
.otm-enhanced-directory .otm-member-card__body .employee-name {
  align-items: center;
  color: var(--otm-navy) !important;
  display: flex;
  font-family: "Montserrat", sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  justify-content: center;
  letter-spacing: 0.03em !important;
  line-height: 1.35 !important;
  margin: 0 0 0.55rem !important;
  min-height: 2.75em;
  padding: 0 !important;
  text-transform: capitalize !important;
  white-space: normal !important;
  word-break: normal;
}

body.sln-font-update-enabled .otm-enhanced-directory .otm-member-card__body h4,
body.sln-font-update-enabled .otm-enhanced-directory .otm-member-card__body h4.employee-name,
body.sln-font-update-enabled .otm-enhanced-directory .otm-member-card__body .employee-name {
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: capitalize !important;
}

.otm-enhanced-directory .otm-member-card__body h5,
.otm-enhanced-directory .otm-member-card__body .employee-title {
  align-items: flex-start;
  color: #5c677d !important;
  display: flex;
  flex-grow: 0 !important;
  font-family: "Montserrat", "Segoe UI", sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  justify-content: center;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  min-height: 3em;
  padding: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
}

.otm-enhanced-directory .otm-member-card__body .otm-member-card__division {
  box-sizing: border-box;
  border-top: 1px solid rgba(25, 48, 94, 0.12);
  color: var(--otm-plum);
  flex-shrink: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.45;
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.35rem 0;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.otm-enhanced-directory .document-list .team-member.otm-anim-leave {
  opacity: 0;
  transform: scale(0.96);
}

.otm-enhanced-directory .document-list .team-member.otm-anim-enter {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 991px) {
  .otm-enhanced-directory .employee-list-block .document-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
  }

  .otm-enhanced-directory .otm-member-card__body {
    padding: 0.85rem 0.7rem 0.95rem !important;
  }

  .otm-enhanced-directory .otm-member-card__body h4,
  .otm-enhanced-directory .otm-member-card__body .employee-name {
    font-size: 0.95rem !important;
    min-height: 0 !important;
    line-height: 1.25 !important;
  }

  .otm-enhanced-directory .otm-member-card__body h5,
  .otm-enhanced-directory .otm-member-card__body .employee-title {
    font-size: 0.72rem !important;
    min-height: 0 !important;
    line-height: 1.35 !important;
  }

  .otm-enhanced-directory .otm-member-card__division {
    font-size: 0.65rem !important;
    letter-spacing: 0.04em !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 767px) {
  .otm-enhanced-directory .employee-list-block .document-list {
    grid-template-columns: 1fr !important;
    max-width: 360px;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 1.25rem;
  }

  .otm-enhanced-directory .employee-list-block {
    padding-bottom: 3rem;
  }

  .otm-enhanced-directory .otm-member-card__body h4,
  .otm-enhanced-directory .otm-member-card__body .employee-name {
    font-size: 1.05rem !important;
  }

  .otm-enhanced-directory .otm-member-card__body h5,
  .otm-enhanced-directory .otm-member-card__body .employee-title {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 575px) {
  .otm-enhanced-directory .employee-list-block .document-list {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .otm-enhanced-directory .employee-list-block {
    padding-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .otm-enhanced-directory .document-list .team-member.otm-member-card,
  .otm-enhanced-directory .document-list .team-member.otm-member-card:hover,
  .otm-enhanced-directory .otm-member-card__media img {
    transform: none;
    transition: opacity 200ms ease;
  }
}

.otm-no-results {
  color: #666;
  display: none;
  flex: 0 0 100%;
  font-size: 1.05rem;
  max-width: 100%;
  padding: 3rem 1rem;
  text-align: center;
  width: 100%;
}

.otm-no-results.is-visible {
  display: block;
}

@media (max-width: 767px) {
  .otm-filter-top .col-md-6 + .col-md-6 {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
  }

  .otm-filter-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .otm-clear-btn {
    width: 100%;
  }
}

/*
 * Mobile/tablet overrides — must beat theme child-theme.css rules like:
 * body:not(.home) #wp-custom-header { min/max-height: 110px }
 * Loaded last in this file so plugin order + !important wins.
 * Desktop (>991px) rules above are intentionally unchanged.
 */
@media (max-width: 991px) {
  body.otm-enhanced-directory:not(.home) #wp-custom-header,
  body.otm-large-format-header:not(.home) #wp-custom-header,
  body.otm-meet-the-team:not(.home) #wp-custom-header,
  body.page-template-meet-the-team:not(.home) #wp-custom-header,
  body.page-id-76:not(.home) #wp-custom-header,
  body.otm-x-team-page:not(.home) #wp-custom-header,
  body.otm-enhanced-directory #wp-custom-header,
  body.otm-large-format-header #wp-custom-header,
  body.otm-meet-the-team #wp-custom-header,
  body.page-template-meet-the-team #wp-custom-header,
  body.page-id-76 #wp-custom-header,
  body.otm-x-team-page #wp-custom-header {
    height: 300px !important;
    max-height: 300px !important;
    min-height: 300px !important;
    overflow: hidden !important;
  }

  body.otm-enhanced-directory:not(.home) #wp-custom-header img,
  body.otm-large-format-header:not(.home) #wp-custom-header img,
  body.otm-meet-the-team:not(.home) #wp-custom-header img,
  body.page-template-meet-the-team:not(.home) #wp-custom-header img,
  body.page-id-76:not(.home) #wp-custom-header img,
  body.otm-x-team-page:not(.home) #wp-custom-header img,
  body.otm-enhanced-directory #wp-custom-header img,
  body.otm-large-format-header #wp-custom-header img,
  body.otm-meet-the-team #wp-custom-header img,
  body.page-id-76 #wp-custom-header img,
  body.otm-x-team-page #wp-custom-header img,
  body.otm-enhanced-directory .custom-header-media img,
  body.otm-large-format-header .custom-header-media img,
  body.otm-meet-the-team .custom-header-media img,
  body.page-id-76 .custom-header-media img,
  body.otm-x-team-page .custom-header-media img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: translate(-50%, -50%) !important;
  }

  body.otm-enhanced-directory .custom-header-media.large-format,
  body.otm-large-format-header .custom-header-media.large-format,
  body.otm-meet-the-team .custom-header-media.large-format,
  body.page-template-meet-the-team .custom-header-media.large-format,
  body.page-id-76 .custom-header-media.large-format,
  body.otm-x-team-page .custom-header-media.large-format {
    max-height: none !important;
    min-height: 300px !important;
    height: auto !important;
    overflow: hidden !important;
  }

  body.otm-enhanced-directory .custom-header-media.large-format .otm-hero-caption,
  body.otm-large-format-header .custom-header-media.large-format .otm-hero-caption,
  body.otm-meet-the-team .custom-header-media.large-format .otm-hero-caption,
  body.page-template-meet-the-team .custom-header-media.large-format .otm-hero-caption,
  body.page-id-76 .custom-header-media.large-format .otm-hero-caption,
  body.otm-x-team-page .custom-header-media.large-format .otm-hero-caption {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 5.5rem 1rem 1.15rem !important;
    z-index: 5 !important;
  }

  body.otm-enhanced-directory .otm-hero-caption .blue-background-block,
  body.otm-enhanced-directory .otm-hero-caption .otm-hero-heading,
  body.otm-large-format-header .otm-hero-caption .blue-background-block,
  body.otm-large-format-header .otm-hero-caption .otm-hero-heading,
  body.otm-meet-the-team .otm-hero-caption .blue-background-block,
  body.otm-meet-the-team .otm-hero-caption .otm-hero-heading,
  body.page-id-76 .otm-hero-caption .blue-background-block,
  body.page-id-76 .otm-hero-caption .otm-hero-heading,
  body.otm-x-team-page .otm-hero-caption .blue-background-block,
  body.otm-x-team-page .otm-hero-caption .otm-hero-heading {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 0.75rem 1rem !important;
    line-height: 1.25 !important;
  }

  body.otm-enhanced-directory .otm-hero-caption .blue-background-block h1,
  body.otm-enhanced-directory .otm-hero-caption .blue-background-block h2,
  body.otm-enhanced-directory .otm-hero-caption .otm-hero-heading h1,
  body.otm-enhanced-directory .otm-hero-caption .otm-hero-heading h2,
  body.otm-large-format-header .otm-hero-caption .blue-background-block h1,
  body.otm-large-format-header .otm-hero-caption .blue-background-block h2,
  body.otm-large-format-header .otm-hero-caption .otm-hero-heading h1,
  body.otm-large-format-header .otm-hero-caption .otm-hero-heading h2,
  body.otm-meet-the-team .otm-hero-caption h1,
  body.otm-meet-the-team .otm-hero-caption h2,
  body.page-id-76 .otm-hero-caption h1,
  body.page-id-76 .otm-hero-caption h2,
  body.otm-x-team-page .otm-hero-caption h1,
  body.otm-x-team-page .otm-hero-caption h2 {
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    letter-spacing: 0.06em !important;
  }

  /* Meet the Team: hide long subheads on tablet/phone so title stays clear of logo. */
  body.otm-meet-the-team .otm-hero-caption .otm-hero-subheading,
  body.otm-meet-the-team .otm-hero-caption .blue-background-block p,
  body.page-template-meet-the-team .otm-hero-caption .otm-hero-subheading,
  body.page-id-76 .otm-hero-caption .otm-hero-subheading,
  body.otm-x-team-page .otm-hero-caption .otm-hero-subheading,
  body.otm-x-team-page .otm-hero-caption .blue-background-block p,
  body.otm-x-team-page .otm-hero-caption p {
    display: none !important;
  }

  body.otm-x-team-page .entry-content,
  body.otm-x-team-page .entry-content.blocks,
  body.otm-x-team-page .blocks-wrapper .entry-content {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }

  body.otm-x-team-page .entry-content img.alignright,
  body.otm-x-team-page .entry-content img.alignleft,
  body.otm-x-team-page .entry-content .alignright,
  body.otm-x-team-page .entry-content .alignleft {
    float: none !important;
    display: block !important;
    margin: 0 auto 1.35rem !important;
    max-width: min(100%, 280px) !important;
    height: auto !important;
  }

  body.otm-x-team-page .entry-content p {
    text-align: left;
  }
}

@media (max-width: 767px) {
  body.otm-enhanced-directory:not(.home) #wp-custom-header,
  body.otm-large-format-header:not(.home) #wp-custom-header,
  body.otm-meet-the-team:not(.home) #wp-custom-header,
  body.page-template-meet-the-team:not(.home) #wp-custom-header,
  body.page-id-76:not(.home) #wp-custom-header,
  body.otm-x-team-page:not(.home) #wp-custom-header,
  body.otm-enhanced-directory #wp-custom-header,
  body.otm-large-format-header #wp-custom-header,
  body.otm-meet-the-team #wp-custom-header,
  body.page-id-76 #wp-custom-header,
  body.otm-x-team-page #wp-custom-header {
    height: 240px !important;
    max-height: 240px !important;
    min-height: 240px !important;
  }

  body.otm-enhanced-directory .custom-header-media.large-format,
  body.otm-large-format-header .custom-header-media.large-format,
  body.otm-meet-the-team .custom-header-media.large-format,
  body.page-id-76 .custom-header-media.large-format,
  body.otm-x-team-page .custom-header-media.large-format {
    min-height: 240px !important;
  }

  body.otm-enhanced-directory .custom-header-media.large-format .otm-hero-caption,
  body.otm-large-format-header .custom-header-media.large-format .otm-hero-caption,
  body.otm-meet-the-team .custom-header-media.large-format .otm-hero-caption,
  body.page-id-76 .custom-header-media.large-format .otm-hero-caption,
  body.otm-x-team-page .custom-header-media.large-format .otm-hero-caption {
    padding: 4.75rem 0.85rem 0.95rem !important;
  }

  body.otm-enhanced-directory .otm-hero-caption h1,
  body.otm-enhanced-directory .otm-hero-caption h2,
  body.otm-large-format-header .otm-hero-caption h1,
  body.otm-large-format-header .otm-hero-caption h2,
  body.otm-meet-the-team .otm-hero-caption h1,
  body.otm-meet-the-team .otm-hero-caption h2,
  body.page-id-76 .otm-hero-caption h1,
  body.page-id-76 .otm-hero-caption h2,
  body.otm-x-team-page .otm-hero-caption h1,
  body.otm-x-team-page .otm-hero-caption h2 {
    font-size: 1.15rem !important;
  }
}
