/* Staff directory and profiles; existing CMS content and native contact forms. */
body:not(.eyed):has(.staff-block-inner, .staff-detail) {
  --ws-ink: #173653;
  --ws-copy: #405c73;
  --ws-muted: #5c7285;
  --ws-card: #fff;
  --ws-soft: #f0f6fb;
  --ws-line: #d6e4ef;
  --ws-link: #1265a5;
}
body.theme-dark:not(.eyed):has(.staff-block-inner, .staff-detail) {
  --ws-ink: #ecf5ff;
  --ws-copy: #c7d8e6;
  --ws-muted: #aec3d5;
  --ws-card: #182e42;
  --ws-soft: #203c52;
  --ws-line: #38566c;
  --ws-link: #93d0ff;
}
body:not(.eyed):has(.staff-block-inner, .staff-detail) #pagetitle { color: var(--ws-ink); }
body:not(.eyed) .staff-block-inner__section { margin-top: 44px; }
body:not(.eyed) .staff-block-inner__section-content {
  padding: 28px 32px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: linear-gradient(120deg, #173653, #205e80);
  color: #e6f2fb;
}
body:not(.eyed) .staff-block-inner__section-title {
  margin: 0 0 12px;
  color: #fff;
  font-family: inherit;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}
body:not(.eyed) .staff-block-inner__section-description {
  max-width: 900px;
  color: #e6f2fb;
  line-height: 1.75;
}
body:not(.eyed) .staff-block-inner__section-description p:last-child { margin-bottom: 0; }
body:not(.eyed) .staff-block-inner__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
body:not(.eyed) .staff-block-inner__wrapper.grid-list__item {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ws-line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ws-card);
  box-shadow: 0 8px 26px rgba(20, 53, 82, .08);
  transition: box-shadow .18s ease, border-color .18s ease;
}
body:not(.eyed) .staff-block-inner__wrapper:is(:hover, :focus-within) {
  border-color: #7eaed1;
  box-shadow: 0 12px 32px rgba(20, 53, 82, .16);
}
body:not(.eyed) .staff-block-inner__item {
  display: flex;
  flex-direction: column;
}
body:not(.eyed) .staff-block-inner__item::before,
body:not(.eyed) .staff-block-inner__image-wrapper::after,
body:not(.eyed) .staff-block-inner__preview-wrapper {
  display: none;
}
body:not(.eyed) .staff-block-inner__image-wrapper {
  flex-shrink: 0;
  background: linear-gradient(135deg, #e2edf5, #f6f9fc);
  border-bottom: 1px solid var(--ws-line);
}
body:not(.eyed) .staff-block-inner__image {
  height: 260px;
  padding: 0;
  border-radius: 0;
}
body:not(.eyed) .staff-block-inner__image-bg {
  background-size: contain;
  background-position: center;
}
body:not(.eyed) .staff-block-inner__item-link--absolute {
  top: 0;
  bottom: auto;
  height: 260px;
}
/* Keep contact details visible, including on touchscreens; no hover overlay. */
body:not(.eyed) .staff-block-inner__content-wrapper {
  position: relative;
  bottom: auto;
  flex: 1;
  padding: 24px;
  max-height: none;
  height: auto;
  opacity: 1;
  visibility: visible;
  border-radius: 0;
  overflow: visible;
  transition: none;
}
body:not(.eyed) .staff-block-inner__content-wrapper :is(.mCustomScrollBox, .mCSB_container) {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0;
  margin: 0;
  top: 0 !important;
}
body:not(.eyed) .staff-block-inner__content-wrapper .mCSB_scrollTools { display: none; }
body:not(.eyed) .staff-block-inner__property--name {
  display: flex;
  flex-direction: column;
  padding: 0 0 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--ws-line);
}
body:not(.eyed) .staff-block-inner__name {
  order: -1;
  color: var(--ws-ink);
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
body:not(.eyed) .staff-block-inner__label {
  min-height: 40px;
  margin: 8px 0 0;
  color: var(--ws-link);
  opacity: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
body:not(.eyed) .staff-block-inner__property { margin-top: 14px; }
body:not(.eyed) :is(.staff-block-inner__property-label, .staff-detail__property-label) {
  margin-bottom: 5px;
  color: var(--ws-muted);
  opacity: 1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
body:not(.eyed) :is(.staff-block-inner__property-value, .staff-detail__property-value),
body:not(.eyed) :is(.staff-block-inner__property-value, .staff-detail__property-value) a {
  color: var(--ws-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body:not(.eyed) .staff-block-inner__name:is(:hover, :focus),
body:not(.eyed) :is(.staff-block-inner__property-value, .staff-detail__property-value) a:hover {
  color: var(--ws-link);
  opacity: 1;
}
body:not(.eyed) .staff-block-inner__feedback,
body:not(.eyed) .staff-block-inner__feedback .btn { width: 100%; }
body:not(.eyed) .staff-block-inner__feedback .btn {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 10px;
  white-space: normal;
}
body:not(.eyed) :is(.staff-block-inner, .staff-detail) .social__link {
  border-radius: 8px;
  background: var(--ws-soft);
}
body:not(.eyed) :is(.staff-block-inner, .staff-detail) .social__link svg path {
  fill: var(--ws-link);
}
/* A portrait panel and readable profile, with all native fields preserved. */
body:not(.eyed) .staff-detail__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ws-line);
  border-radius: 24px;
  background: var(--ws-card);
  box-shadow: 0 12px 36px rgba(20, 53, 82, .09);
}
body:not(.eyed) .staff-detail__card--with-picture {
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.45fr);
}
body:not(.eyed) .staff-detail__card-info { min-width: 0; }
body:not(.eyed) .staff-detail__card-image {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  padding: 28px;
  background: linear-gradient(145deg, #173653, #205e80);
}
body:not(.eyed) .staff-detail .staff-detail__image-wrapper {
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
  background: #e8f0f6;
}
body:not(.eyed) .staff-detail__image {
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 0;
}
body:not(.eyed) .staff-detail__image-bg {
  background-size: contain;
  background-position: center;
}
body:not(.eyed) .staff-detail .staff-detail__top-wrapper {
  padding: 28px 30px;
  background: linear-gradient(110deg, var(--ws-soft), var(--ws-card));
  border-bottom: 1px solid var(--ws-line);
}
body:not(.eyed) .staff-detail__line--between {
  flex-direction: column;
  gap: 18px;
  margin: 0;
}
body:not(.eyed) .staff-detail__name-wrapper,
body:not(.eyed) .staff-detail__feedback {
  margin: 0;
  padding: 0;
}
body:not(.eyed) .staff-detail__label {
  margin-bottom: 10px;
  color: var(--ws-link);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body:not(.eyed) .staff-detail__post {
  color: var(--ws-ink);
  font-size: clamp(23px, 2.3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}
body:not(.eyed) .staff-detail__feedback .btn {
  padding: 13px 20px;
  min-height: 46px;
  border-radius: 11px;
  background: #1b5988;
  border-color: #1b5988;
  color: #fff;
  white-space: normal;
}
body:not(.eyed) .staff-detail__feedback .btn:hover {
  background: #123e60;
  border-color: #123e60;
}
body:not(.eyed) .staff-detail .staff-detail__bottom-wrapper { padding: 26px 30px 30px; }
body:not(.eyed) .staff-detail__properties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
body:not(.eyed) .staff-detail__property {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--ws-line);
  border-radius: 12px;
  background: var(--ws-soft);
}
body:not(.eyed) .staff-detail__text-wrapper { margin-top: 24px; }
body:not(.eyed) .staff-detail__text {
  color: var(--ws-copy);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
body:not(.eyed) .staff-detail__text p:last-child { margin-bottom: 0; }
body:not(.eyed) .staff-epilog .ordered-block__title {
  padding: 18px 24px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--ws-ink);
  background: var(--ws-soft);
  font-family: inherit;
  font-size: 23px;
  font-weight: 700;
}
body:not(.eyed) .staff-epilog .items-list-inner > .grid-list { gap: 16px; }
body:not(.eyed) .staff-epilog .items-list-inner__item {
  padding: 24px;
  border: 1px solid var(--ws-line);
  border-radius: 18px !important;
  background: var(--ws-card);
  box-shadow: 0 5px 20px rgba(20,53,82,.05);
}
body:not(.eyed) .staff-epilog .items-list-inner__item-title a { color: var(--ws-ink); }
body:not(.eyed) .staff-epilog .items-list-inner__item-preview { color: var(--ws-copy); }
body:not(.eyed):has(.staff-detail) .back-url {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--ws-line);
  border-radius: 12px;
  background: var(--ws-soft);
  color: var(--ws-ink);
}
body:not(.eyed):has(.staff-detail) .back-url-icon {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 22px;
  width: 22px;
  transform: none;
}
body:not(.eyed):has(.staff-detail) .back-url-text { margin: 0; padding: 0; }
body:not(.eyed) :is(.staff-block-inner, .staff-detail, .staff-epilog) a:focus-visible {
  outline: 3px solid #2583c8;
  outline-offset: 3px;
  border-radius: 6px;
}
@media (min-width: 992px) and (max-width: 1199px) {
  body:not(.eyed) .staff-block-inner__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.eyed) .staff-detail__card--with-picture { grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); }
  body:not(.eyed) .staff-detail__card-image { padding: 18px; }
  body:not(.eyed) .staff-detail__properties { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  body:not(.eyed) .staff-block-inner__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  body:not(.eyed) .staff-detail__card--with-picture { grid-template-columns: minmax(0, 1fr); }
  body:not(.eyed) .staff-detail__card-image { justify-content: center; padding: 24px; }
  body:not(.eyed) .staff-detail .staff-detail__image-wrapper { max-width: 240px; }
  body:not(.eyed) .staff-detail__card-info { grid-row: 2; }
}
@media (max-width: 600px) {
  body:not(.eyed) .staff-block-inner__section-content { padding: 24px; border-radius: 18px; }
  body:not(.eyed) .staff-block-inner__list { grid-template-columns: minmax(0, 1fr); }
  body:not(.eyed) .staff-block-inner__content-wrapper { padding: 22px; }
  body:not(.eyed) .staff-block-inner__label { min-height: 0; }
  body:not(.eyed) .staff-detail .staff-detail__top-wrapper,
  body:not(.eyed) .staff-detail .staff-detail__bottom-wrapper { padding: 24px; }
  body:not(.eyed) .staff-detail__properties { grid-template-columns: minmax(0, 1fr); }
  body:not(.eyed) .staff-detail__feedback .btn { width: 100%; }
  body:not(.eyed) .staff-epilog .items-list-inner__item { flex-direction: column; padding: 22px; }
  body:not(.eyed) .staff-epilog .items-list-inner__item-image-wrapper .items-list-inner__item-link { margin: 0 0 18px; }
  body:not(.eyed) .staff-epilog .items-list-inner__item-text-wrapper { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.eyed) .staff-block-inner__wrapper { transition: none; }
}
