:root {
  --primary: #183B5B;
  --secondary: #EAF4FB;
  --accent: #F28C28;
  --background: #FFFFFF;
  --text: #334155;
  --muted: #64748B;
  --line: #D9E6EF;
  --shadow: 0 14px 32px rgba(24, 59, 91, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  line-height: 1.75;
}

body.is-teacher-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2 {
  margin: 0;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.menu-button {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.teacher-finder-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.teacher-finder-link:focus-visible,
.nav a:focus-visible,
.menu-button:focus-visible {
  outline: 3px solid rgba(242, 140, 40, 0.42);
  outline-offset: 3px;
}

.teachers-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 56px;
}

.teachers-update-notice {
  max-width: 720px;
  margin-bottom: 34px;
  padding: 22px 24px;
  border: 1px solid rgba(242, 140, 40, 0.28);
  border-radius: 8px;
  background: #fff7ed;
}

.teachers-update-notice strong,
.teachers-update-notice span {
  display: block;
}

.teachers-update-notice strong {
  color: var(--primary);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.25;
}

.teachers-update-notice span {
  margin-top: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.teachers-hero h1 {
  max-width: 720px;
  color: var(--primary);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.teachers-hero p:last-child {
  max-width: 680px;
  margin-top: 24px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

.search-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 88px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--secondary);
}

.teacher-total-count {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.teacher-controls {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-bottom: 24px;
}

.teacher-search,
.subject-filter,
.empty-state {
  border: 1px solid rgba(24, 59, 91, 0.12);
  border-radius: 8px;
  background: #fff;
}

.teacher-search,
.subject-filter {
  padding: 20px;
}

.teacher-search label,
.subject-filter p {
  display: block;
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
}

.teacher-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.teacher-search input:focus {
  outline: 3px solid rgba(242, 140, 40, 0.28);
  border-color: rgba(242, 140, 40, 0.58);
}

.teacher-search p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.subject-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-filter__buttons button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.subject-filter__buttons button:hover,
.subject-filter__buttons button:focus-visible {
  border-color: rgba(24, 59, 91, 0.42);
  background: var(--secondary);
}

.subject-filter__buttons button.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.teacher-empty-message {
  margin: 22px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.teacher-related-links {
  width: min(1120px, calc(100% - 40px));
  margin: -40px auto 88px;
}

.teacher-related-links__heading {
  margin-bottom: 24px;
}

.teacher-related-links__heading p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.teacher-related-links__heading h2 {
  max-width: 720px;
  color: var(--primary);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.35;
}

.teacher-related-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.teacher-related-links__grid article {
  min-height: 180px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.teacher-related-links__grid h3 {
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.teacher-related-links__grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.teacher-related-links__grid a {
  width: fit-content;
  margin-top: 4px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
}

.empty-state {
  min-height: 260px;
  padding: 48px;
  display: grid;
  align-content: center;
}

.empty-state h2 {
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.empty-state p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

.teacher-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.teacher-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.teacher-card:hover,
.teacher-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(24, 59, 91, 0.14);
}

.teacher-card:focus-visible {
  outline: 3px solid rgba(242, 140, 40, 0.42);
  outline-offset: 3px;
}

.teacher-card__mode,
.teacher-card__heart {
  position: absolute;
  z-index: 1;
}

.teacher-card__mode {
  top: 10px;
  left: 10px;
  min-height: 30px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #3b75f6;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.teacher-card__heart {
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  font-size: 18px;
}

.teacher-card__portrait {
  width: 100%;
  aspect-ratio: 4 / 3.35;
  display: block;
  object-fit: cover;
  object-position: center 16%;
  background: var(--secondary);
}

.teacher-card__body {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.teacher-card__body strong {
  color: var(--primary);
  font-size: 20px;
  line-height: 1.35;
}

.teacher-card__body small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.teacher-card__meta {
  color: #2563eb;
  font-size: 15px;
  font-weight: 800;
}

.teacher-card__credential {
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.teacher-card__intro {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.teacher-card__school {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.teacher-modal[hidden] {
  display: none;
}

.teacher-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.teacher-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(4px);
}

.teacher-modal__panel {
  position: relative;
  width: min(580px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  animation: teacher-modal-pop 180ms ease-out;
}

.teacher-modal__header {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-height: 0;
  padding: 0;
  display: block;
  border-bottom: 0;
}

.teacher-modal__header > div {
  display: none;
}

.teacher-modal__header button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font: inherit;
  font-size: 0;
  font-weight: 700;
  cursor: pointer;
}

.teacher-modal__header button::before {
  content: "×";
  font-size: 22px;
  line-height: 1;
}

.teacher-detail {
  overflow: auto;
  padding: 20px;
  display: grid;
  gap: 0;
}

.teacher-detail__summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 0 38px 20px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.teacher-detail__summary > div {
  grid-column: 2;
}

.teacher-detail__label {
  margin-bottom: 6px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
}

.teacher-detail__summary h2 {
  color: var(--primary);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
}

.teacher-detail__summary h2 small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.teacher-detail__subject {
  margin-top: 8px;
  color: #2563eb;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.teacher-detail__badge {
  width: fit-content;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf4fb;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.teacher-detail__quote {
  margin-top: 14px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.teacher-detail__summary p:last-child {
  margin-top: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.teacher-detail__avatar {
  grid-row: 1;
  grid-column: 1;
  width: 150px;
  height: 150px;
  border: 0;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 18%;
  background: var(--secondary);
  box-shadow: none;
}

.teacher-detail__chips {
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.teacher-detail__chips span {
  min-height: 32px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.teacher-detail__section {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.teacher-detail__section h3 {
  margin: 0 0 12px;
  color: #2563eb;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.teacher-detail__section dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.teacher-detail__section dl div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.teacher-detail__section dl div:first-child {
  padding-top: 0;
  border-top: 0;
}

.teacher-detail__section dt {
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.teacher-detail__section dd,
.teacher-detail__section p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.teacher-detail__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.teacher-grade-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.teacher-grade-table__head,
.teacher-grade-table__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
}

.teacher-grade-table__head {
  background: #00c853;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.teacher-grade-table__head span,
.teacher-grade-table__row strong,
.teacher-grade-table__row > div {
  padding: 14px 16px;
}

.teacher-grade-table__head span:first-child,
.teacher-grade-table__row strong {
  border-right: 1px solid rgba(24, 59, 91, 0.12);
}

.teacher-grade-table__row strong {
  color: #00a65a;
  font-size: 14px;
  line-height: 1.55;
}

.teacher-grade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.teacher-grade-pills span {
  min-width: 38px;
  min-height: 28px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.teacher-grade-pills .is-active {
  background: #00b050;
  color: #fff;
}

.teacher-pr-copy {
  display: grid;
  gap: 10px;
}

.teacher-pr-copy p {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  white-space: normal;
}

.teacher-pr-copy p:first-child {
  padding-bottom: 2px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.teacher-pr-copy strong {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.teacher-career-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.teacher-career-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.teacher-career-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #00b050;
}

.teacher-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.teacher-region-grid div {
  min-height: 92px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid #83d4ff;
  border-radius: 10px;
  background: #edf8ff;
}

.teacher-region-grid strong {
  color: #1479ff;
  font-size: 15px;
  font-weight: 900;
}

.teacher-region-grid span {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

@keyframes teacher-modal-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-links.is-open {
    display: flex;
  }

  .brand {
    font-size: 16px;
  }

  .teacher-finder-link {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .teachers-hero {
    padding: 64px 0 42px;
  }

  .teachers-hero h1 {
    max-width: 330px;
    font-size: 32px;
  }

  .teacher-controls {
    grid-template-columns: 1fr;
  }

  .teacher-preview-grid {
    grid-template-columns: 1fr;
  }

  .search-shell {
    padding: 24px;
  }

  .empty-state {
    min-height: 220px;
    padding: 32px 24px;
  }

  .teacher-modal {
    padding: 12px;
  }

  .teacher-modal__panel {
    max-height: calc(100vh - 24px);
    grid-template-rows: minmax(0, 1fr);
    border-radius: 14px;
  }

  .teacher-detail {
    padding: 16px;
    gap: 0;
  }

  .teacher-detail__summary {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 0 36px 16px 0;
  }

  .teacher-detail__summary h2 {
    font-size: 23px;
  }

  .teacher-detail__avatar {
    width: 108px;
    height: 108px;
  }

  .teacher-detail__section {
    padding: 16px 0;
  }

  .teacher-grade-table__head,
  .teacher-grade-table__row {
    grid-template-columns: 1fr;
  }

  .teacher-grade-table__head span:first-child,
  .teacher-grade-table__row strong {
    border-right: 0;
    border-bottom: 1px solid rgba(24, 59, 91, 0.12);
  }

  .teacher-region-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav,
  .teachers-hero,
  .search-shell {
    width: min(100% - 40px, 1120px);
  }
}

.teachers-hero p:last-child,
.teacher-search p,
.teacher-empty-message,
.empty-state p,
.teacher-card__intro,
.teacher-card__school,
.teacher-detail__summary p:last-child,
.teacher-detail__section dd,
.teacher-detail__section p,
.teacher-career-list li,
.teacher-region-grid span {
  font-size: 17px;
  font-weight: 600;
}

.teacher-search .teacher-search-cta {
  margin-top: 4px;
  color: #f28c28;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.45;
}

.teacher-detail__note {
  font-size: 15px;
  font-weight: 700;
}

main p,
main li,
main dd,
main small,
.teacher-modal p,
.teacher-modal li,
.teacher-modal dd,
.teacher-modal small {
  font-size: 17px;
  font-weight: 700;
}

.teacher-modal p,
.teacher-modal li,
.teacher-modal dd,
.teacher-modal small {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.teacher-modal .teacher-detail__subject {
  font-size: 15px;
  font-weight: 700;
}

.teacher-modal .teacher-detail__badge {
  font-size: 13px;
  font-weight: 700;
}

.teacher-modal .teacher-detail__quote {
  font-size: 15px;
  font-weight: 700;
}

.teacher-modal strong,
.teacher-modal dt,
.teacher-modal h3 {
  font-weight: 700;
}

/* Apple-inspired teacher profile modal refresh */
.teacher-modal {
  padding: 28px;
}

.teacher-modal__backdrop {
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(18px) saturate(1.12);
}

.teacher-modal__panel {
  width: min(760px, 100%);
  max-height: min(650px, calc(100vh - 56px));
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.teacher-modal__header {
  top: 16px;
  right: 16px;
  z-index: 20;
}

.teacher-modal__header button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid rgba(24, 59, 91, 0.22);
  background: #183b5b;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.teacher-modal__header button::before {
  content: "×";
  font-size: 22px;
  font-weight: 400;
}

.teacher-detail {
  height: 100%;
  min-height: 0;
  padding: 18px 24px 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.teacher-detail__summary {
  position: relative;
  z-index: 12;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 24px;
  min-height: 150px;
  margin: 0 0 18px;
  padding: 14px 68px 14px 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.teacher-detail__content {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding-right: 4px;
}

.teacher-detail__summary h2 {
  color: #0f2f4f;
  font-size: 26px;
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.teacher-detail__summary h2 small {
  color: #64748b;
  font-size: 15px;
}

.teacher-detail__subject {
  margin-top: 9px;
  color: #2563eb;
  font-size: 16px;
  font-weight: 750;
}

.teacher-detail__badge {
  margin-top: 12px;
  padding: 8px 12px;
  background: #eef6ff;
  color: #2563eb;
  font-size: 13px;
}

.teacher-detail__quote {
  margin-top: 10px;
  color: #111827;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.teacher-detail__summary p:last-child {
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.teacher-detail__avatar {
  width: 122px;
  height: 122px;
  border-radius: 20px;
  object-position: center 18%;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.teacher-detail__section {
  position: relative;
  z-index: 1;
  padding: 20px 22px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.teacher-detail__section h3 {
  margin-bottom: 10px;
  color: #2563eb;
  font-size: 15px;
  font-weight: 800;
}

.teacher-modal .teacher-detail__section p,
.teacher-modal .teacher-detail__section dd,
.teacher-modal .teacher-career-list li,
.teacher-modal .teacher-region-grid span {
  color: #334155;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.78;
}

.teacher-detail__section dl {
  gap: 10px;
}

.teacher-detail__section dl div {
  padding: 12px 0 0;
}

.teacher-detail__section dt,
.teacher-modal .teacher-pr-copy strong {
  color: #0f2f4f;
  font-size: 15px;
  font-weight: 760;
}

.teacher-grade-table {
  border-radius: 16px;
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.teacher-grade-table__head {
  background: #183b5b;
  font-size: 14px;
}

.teacher-grade-table__head span,
.teacher-grade-table__row strong,
.teacher-grade-table__row > div {
  padding: 13px 16px;
}

.teacher-grade-pills {
  gap: 7px;
}

.teacher-grade-pills span {
  min-width: 39px;
  min-height: 29px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
}

.teacher-grade-pills .is-active {
  background: #2563eb;
  color: #fff;
}

.teacher-pr-copy {
  gap: 12px;
}

.teacher-pr-copy p:first-child {
  color: #0f2f4f;
  font-size: 16px;
  font-weight: 780;
}

.teacher-career-list {
  gap: 9px;
}

.teacher-career-list li {
  padding-left: 17px;
}

.teacher-career-list li::before {
  top: 0.82em;
  width: 5px;
  height: 5px;
  background: #94a3b8;
}

.teacher-region-grid div {
  min-height: auto;
  padding: 16px;
  border-color: rgba(191, 219, 254, 0.86);
  border-radius: 16px;
  background: #f8fbff;
}

.teacher-region-grid strong {
  color: #183b5b;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .teacher-modal {
    padding: 10px;
  }

  .teacher-modal__panel {
    max-height: min(620px, calc(100vh - 20px));
    border-radius: 22px;
  }

  .teacher-detail {
    height: 100%;
    padding: 10px 12px 14px;
    gap: 10px;
  }

  .teacher-detail__summary {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    margin-bottom: 12px;
    padding: 10px 50px 10px 10px;
    border-radius: 16px;
  }

  .teacher-detail__avatar {
    width: 74px;
    height: 74px;
    border-radius: 14px;
  }

  .teacher-detail__summary h2 {
    font-size: 20px;
  }

  .teacher-detail__subject {
    margin-top: 4px;
    font-size: 13px;
  }

  .teacher-detail__badge {
    margin-top: 7px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .teacher-detail__quote {
    margin-top: 8px;
    font-size: 13px;
  }

  .teacher-detail__summary p:last-child {
    display: none;
  }

  .teacher-detail__section {
    padding: 16px;
    border-radius: 16px;
  }

  .teacher-modal .teacher-detail__section p,
  .teacher-modal .teacher-detail__section dd,
  .teacher-modal .teacher-career-list li,
  .teacher-modal .teacher-region-grid span {
    font-size: 14px;
    line-height: 1.72;
  }
}

@media (max-width: 760px) {
  .teacher-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .teacher-card__portrait {
    aspect-ratio: 1 / 1;
    object-position: center 12%;
  }

  .teacher-card__body {
    padding: 11px;
    gap: 5px;
  }

  .teacher-card__body strong {
    font-size: 15px;
    line-height: 1.25;
  }

  .teacher-card__body small {
    font-size: 11px;
  }

  .teacher-card__meta {
    font-size: 12px;
    line-height: 1.35;
  }

  .teacher-card__intro {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .teacher-card__school {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
  }

  .teacher-card__mode {
    top: 8px;
    left: 8px;
    min-height: 26px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .teacher-card__heart {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}
