/* Academic directories: Careers and Teachers */
.directory-page { min-height: 100vh; background: var(--cream); }
.directory-shell { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }

.directory-hero {
  padding: 72px 0;
  background: linear-gradient(125deg, #f8cb67, var(--yellow) 68%, #ecad2e);
}
.directory-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 70px;
}
.directory-hero__copy > p,
.directory-search__heading p,
.teacher-card__title p {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.directory-hero h1 {
  max-width: 790px;
  margin-top: 12px;
  font: 600 clamp(46px, 5.6vw, 72px)/.98 var(--display);
  text-transform: uppercase;
}
.directory-hero__copy > span {
  max-width: 730px;
  margin-top: 22px;
  display: block;
  color: #45433d;
  font-size: 17px;
  line-height: 1.6;
}
.directory-hero__link,
.directory-search-button,
.directory-clear,
.directory-empty button,
.directory-results-more button {
  min-height: 46px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.directory-hero__link { margin-top: 26px; gap: 9px; color: var(--yellow); }
.directory-search-button,
.directory-results-more button { color: var(--yellow); }
.directory-hero__stat {
  padding: 28px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(30, 32, 34, .14);
  border-radius: 20px;
  background: rgba(255, 250, 241, .9);
  box-shadow: 0 18px 42px rgba(73, 49, 8, .13);
}
.directory-hero__stat strong { font: 600 68px/1 var(--display); }
.directory-hero__stat span { color: var(--muted); font-size: 13px; font-weight: 800; }
.directory-hero__stat i {
  width: 44px;
  height: 44px;
  margin-top: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.directory-search { padding: 66px 0 88px; }
.directory-search__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.directory-search__heading h2 {
  margin-top: 7px;
  font: 600 clamp(34px, 4vw, 48px)/1 var(--display);
  text-transform: uppercase;
}
.directory-search__heading > span { color: var(--muted); font-size: 13px; font-weight: 800; }
.directory-filters {
  margin-top: 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1.25fr .75fr auto;
  align-items: end;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}
.directory-filters--teachers { grid-template-columns: 1.35fr .8fr 1fr; }
.directory-filters label { min-width: 0; display: grid; gap: 7px; }
.directory-filters label > span:first-child {
  color: #45494b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.directory-field {
  min-height: 47px;
  padding: 0 12px;
  display: flex;
  border: 1px solid #cbc8c1;
  border-radius: 8px;
  background: #fffdfa;
}
.directory-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px #f5bd4261; }
.directory-field input,
.directory-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 14px var(--body);
}
.directory-field-hint { color: var(--muted); font-size: 11px; line-height: 1.4; }
.directory-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.directory-actions button { min-width: 170px; }
.directory-clear {
  border: 1px solid #cbc8c1;
  background: #f5f2ec;
  color: var(--ink);
}
.directory-clear:disabled { border-color: transparent; background: #e9e6df; color: #888; cursor: not-allowed; }
.directory-results-more button:disabled {
  background: #ddd8cf;
  color: #817d75;
  cursor: not-allowed;
}

.career-area-grid,
.teacher-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.teacher-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  scroll-margin-top: 105px;
}
.career-area-card,
.teacher-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(30, 32, 34, .06);
}
.career-area-card header {
  padding: 23px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  background: #fff0ca;
}
.career-area-card header > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--yellow);
  font-size: 10px;
  font-weight: 900;
}
.career-area-card h2 { font: 600 24px/1.08 var(--display); text-transform: uppercase; }
.career-area-card header p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.career-area-card header strong {
  padding: 7px 9px;
  align-self: start;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 12px;
}
.career-area-card ul {
  margin: 0;
  padding: 22px 24px 25px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  list-style: none;
}
.career-area-card li { display: flex; gap: 7px; color: #46494b; font-size: 13px; line-height: 1.4; }
.career-area-card li::before { color: var(--coral); content: "●"; font-size: 8px; line-height: 20px; }

.teacher-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.teacher-card__media {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  aspect-ratio: 1;
  background: #e9e1d5;
}
.teacher-card__photo {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #e9e1d5;
  object-fit: cover;
  object-position: center 28%;
}
.teacher-card__synthetic-photo {
  background-image: var(--teacher-photo-sheet);
  background-repeat: no-repeat;
  background-position: var(--teacher-photo-x) var(--teacher-photo-y);
  background-size: 400% 400%;
}
.teacher-card__portrait-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(26, 28, 30, .82);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}
.teacher-card__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding: 23px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.teacher-card__title { display: flex; justify-content: space-between; gap: 10px; }
.teacher-card__title h2 { margin-top: 5px; font: 600 27px/1 var(--display); text-transform: uppercase; }
.teacher-card__title > span {
  height: fit-content;
  padding: 6px 8px;
  border-radius: 99px;
  background: var(--yellow-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.teacher-card__description { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.teacher-card dl { margin: 16px 0 0; display: grid; gap: 9px; }
.teacher-card dl > div { padding-top: 9px; border-top: 1px solid #ece8df; }
.teacher-card dt { color: #76736e; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.teacher-card dd { margin: 4px 0 0; font-size: 12px; font-weight: 700; line-height: 1.4; }
.teacher-card__tags { margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.teacher-card__tags li {
  padding: 5px 8px;
  border: 1px solid #eadfca;
  border-radius: 999px;
  background: #fff6df;
  color: #4d4538;
  font-size: 10px;
  line-height: 1.2;
}
.teacher-card__footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.teacher-card__footer p { display: grid; gap: 3px; }
.teacher-card__footer small { color: var(--muted); font-size: 10px; }
.teacher-card__footer strong { font: 600 24px/1 var(--display); }
.teacher-card__footer a {
  min-height: 43px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #087a40;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.directory-empty,
.directory-note { margin-top: 32px; border-radius: 15px; }
.directory-empty { padding: 50px 22px; border: 1px dashed #bfbab1; background: var(--white); text-align: center; }
.directory-empty > span { color: var(--coral); font-size: 38px; }
.directory-empty h2 { margin-top: 8px; font: 600 29px/1 var(--display); text-transform: uppercase; }
.directory-empty p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.directory-empty button { margin-top: 18px; }
.directory-results-more {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.directory-results-more[hidden] { display: none; }
.directory-note { padding: 18px 21px; border-left: 5px solid var(--yellow); background: #fff1ca; }
.directory-note--warning { border-left-color: var(--coral); background: #fff0f2; }
.directory-note strong { font-size: 13px; }
.directory-note p { margin-top: 5px; color: #5c584f; font-size: 12px; line-height: 1.5; }

[data-static-directory-footer] { padding: 34px 28px; background: var(--footer); color: var(--white); }
[data-static-directory-footer] > div {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
[data-static-directory-footer] strong { color: var(--yellow); font: 600 26px/1 var(--display); }
[data-static-directory-footer] span { color: #c4c7c9; font-size: 12px; }
[data-static-directory-footer] nav { margin-left: auto; display: flex; gap: 18px; }
[data-static-directory-footer] a { font-size: 12px; font-weight: 800; }

@media (max-width: 1190px) and (min-width: 931px) {
  .desktop-navigation { gap: 12px; }
  .nav-link { font-size: 12px; }
}
@media (max-width: 1040px) {
  .directory-filters--teachers { grid-template-columns: repeat(2, 1fr); }
  .directory-filters--teachers .directory-need-field { grid-column: 1 / -1; }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  [data-seo-prerendered] .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
  [data-seo-prerendered] .desktop-navigation {
    width: 100%;
    margin: 0;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    order: 3;
  }
  [data-seo-prerendered] .nav-link { padding: 7px 0 10px; font-size: 12px; }
  [data-seo-prerendered] .header-cta { display: none; }
  .directory-shell { width: min(700px, calc(100% - 36px)); }
  .directory-hero { padding: 56px 0; }
  .directory-hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .directory-hero__stat { grid-template-columns: auto 1fr auto; align-items: center; }
  .directory-hero__stat i { margin-top: 0; }
  .directory-filters,
  .directory-filters--teachers,
  .career-area-grid { grid-template-columns: 1fr; }
  .directory-filters--teachers .directory-need-field { grid-column: auto; }
  .directory-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-actions button { min-width: 0; width: 100%; }
  .teacher-grid { grid-template-columns: 1fr; }
  .directory-clear { width: 100%; }
  [data-static-directory-footer] > div { align-items: flex-start; flex-direction: column; }
  [data-static-directory-footer] nav { margin-left: 0; }
}
@media (max-width: 620px) {
  .directory-hero h1 { font-size: 44px; }
  .directory-hero__copy > span { font-size: 15px; }
  .directory-hero__link { width: 100%; }
  .directory-search { padding: 52px 0 66px; }
  .directory-search__heading { display: grid; gap: 10px; }
  .directory-filters { padding: 16px; }
  .career-area-card header { padding: 19px; grid-template-columns: 40px 1fr auto; }
  .career-area-card header > span { width: 40px; height: 40px; }
  .career-area-card h2 { font-size: 20px; }
  .career-area-card ul { padding: 19px; grid-template-columns: 1fr; }
  .teacher-card__media { aspect-ratio: 1; }
  .teacher-card__body { padding: 20px; }
  .teacher-card__footer { align-items: stretch; flex-direction: column; }
  .teacher-card__footer a { justify-content: center; }
}
