.lwlhs-teacher-directory,
.lwlhs-teacher-single,
.lwlhs-teacher-editor-state {
  --lwlhs-teacher-ink: #1e1e1e;
  --lwlhs-teacher-red: #b10d0d;
  --lwlhs-teacher-deep-red: #8a1414;
  --lwlhs-teacher-paper: #faf8f4;
  --lwlhs-teacher-soft-red: #fff5f3;
  --lwlhs-teacher-rule: #dedede;
  --lwlhs-teacher-muted: #6f6f6f;
  --lwlhs-teacher-serif: "Noto Serif TC", "Songti TC", PMingLiU, serif;
  --lwlhs-teacher-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--lwlhs-teacher-ink);
  font-family: var(--lwlhs-teacher-sans);
}

.lwlhs-teacher-directory *,
.lwlhs-teacher-single * {
  box-sizing: border-box;
}

.lwlhs-teacher-directory {
  position: relative;
  overflow: clip;
  border-block: 1px solid var(--lwlhs-teacher-rule);
  background: transparent;
}

.lwlhs-teacher-directory::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--lwlhs-teacher-red);
  content: "";
}

.lwlhs-teacher-directory__inner,
.lwlhs-teacher-single__inner {
  width: min(100% - 40px, 1380px);
  margin-inline: auto;
}

.lwlhs-teacher-directory__inner {
  padding-block: clamp(64px, 8vw, 116px);
}

.lwlhs-teacher-directory__header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 76px);
  border-bottom: 1px solid var(--lwlhs-teacher-ink);
  padding-bottom: clamp(28px, 4vw, 46px);
}

.lwlhs-teacher-eyebrow {
  margin: 0 0 14px;
  color: var(--lwlhs-teacher-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lwlhs-teacher-directory__heading h1,
.lwlhs-teacher-profile-header h1,
.lwlhs-teacher-section h2,
.lwlhs-teacher-empty h2 {
  margin: 0;
  font-family: var(--lwlhs-teacher-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lwlhs-teacher-directory__heading h1 {
  max-width: 12ch;
  font-size: clamp(42px, 6.3vw, 86px);
  line-height: 1.04;
}

.lwlhs-teacher-directory__intro > p:first-child {
  margin: 0;
  color: var(--lwlhs-teacher-muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.85;
}

.lwlhs-teacher-directory__count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--lwlhs-teacher-red);
}

.lwlhs-teacher-directory__count strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.lwlhs-teacher-directory__count span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lwlhs-teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.lwlhs-teacher-card {
  min-width: 0;
  margin: 0;
  border-top: 1px solid var(--lwlhs-teacher-ink);
  background: #fff;
}

.lwlhs-teacher-card__link {
  display: flex;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  flex-direction: column;
  outline: 0;
}

.lwlhs-teacher-card__link:focus-visible {
  box-shadow: 0 0 0 3px var(--lwlhs-teacher-paper), 0 0 0 6px var(--lwlhs-teacher-red);
}

.lwlhs-teacher-card__portrait,
.lwlhs-teacher-dossier__portrait {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgb(177 13 13 / 0.08), transparent 58%),
    #eee8df;
}

.lwlhs-teacher-card__portrait {
  aspect-ratio: 4 / 5;
}

.lwlhs-teacher-card__portrait::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--lwlhs-teacher-rule);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: background-color 240ms ease, transform 240ms ease;
}

.lwlhs-teacher-card__portrait img,
.lwlhs-teacher-dossier__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.lwlhs-teacher-card__portrait img {
  transition: filter 320ms ease, transform 320ms ease;
}

.lwlhs-teacher-card__link:hover .lwlhs-teacher-card__portrait img,
.lwlhs-teacher-card__link:focus-visible .lwlhs-teacher-card__portrait img {
  filter: saturate(1) contrast(1.03);
  transform: translateY(-4px);
}

.lwlhs-teacher-card__link:hover .lwlhs-teacher-card__portrait::after,
.lwlhs-teacher-card__link:focus-visible .lwlhs-teacher-card__portrait::after {
  background: var(--lwlhs-teacher-red);
  transform: scaleX(1);
}

.lwlhs-teacher-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--lwlhs-teacher-deep-red);
  font-family: var(--lwlhs-teacher-serif);
  font-size: clamp(52px, 7vw, 96px);
  letter-spacing: 0.04em;
}

.lwlhs-teacher-sample {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 0.7);
  padding: 5px 10px;
  color: #fff;
  background: rgb(30 30 30 / 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lwlhs-teacher-card__body {
  display: flex;
  flex: 1;
  padding: 24px 22px 26px;
  flex-direction: column;
}

.lwlhs-teacher-card__meta {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--lwlhs-teacher-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lwlhs-teacher-card__index {
  color: var(--lwlhs-teacher-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
}

.lwlhs-teacher-card h2 {
  margin: 16px 0 7px;
  font-family: var(--lwlhs-teacher-serif);
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.2;
}

.lwlhs-teacher-card__role,
.lwlhs-teacher-card__intro {
  margin: 0;
}

.lwlhs-teacher-card__role {
  min-height: 48px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.lwlhs-teacher-card__intro {
  margin-top: 16px;
  border-top: 1px solid var(--lwlhs-teacher-rule);
  padding-top: 15px;
  color: var(--lwlhs-teacher-muted);
  font-size: 13px;
  line-height: 1.8;
}

.lwlhs-teacher-card__action {
  display: flex;
  min-height: 44px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--lwlhs-teacher-deep-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lwlhs-teacher-card__action span {
  font-size: 19px;
  transition: transform 220ms ease;
}

.lwlhs-teacher-card__link:hover .lwlhs-teacher-card__action span,
.lwlhs-teacher-card__link:focus-visible .lwlhs-teacher-card__action span {
  transform: translateX(4px);
}

.lwlhs-teacher-empty {
  border: 1px solid var(--lwlhs-teacher-rule);
  border-left: 4px solid var(--lwlhs-teacher-red);
  padding: clamp(30px, 5vw, 56px);
  background: #fff;
}

.lwlhs-teacher-empty h2 {
  font-size: clamp(27px, 3vw, 39px);
}

.lwlhs-teacher-empty p {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--lwlhs-teacher-muted);
  line-height: 1.8;
}

.lwlhs-teacher-single {
  border-top: 5px solid var(--lwlhs-teacher-red);
  background: transparent;
}

.lwlhs-teacher-single__inner {
  padding-block: clamp(28px, 4vw, 52px) clamp(72px, 9vw, 128px);
}

.lwlhs-teacher-breadcrumb {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--lwlhs-teacher-rule);
  color: var(--lwlhs-teacher-muted);
  font-size: 13px;
}

.lwlhs-teacher-breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--lwlhs-teacher-deep-red);
  font-weight: 750;
  text-decoration: none;
}

.lwlhs-teacher-breadcrumb a:focus-visible,
.lwlhs-teacher-adjacent a:focus-visible,
.lwlhs-teacher-cta a:focus-visible {
  outline: 3px solid var(--lwlhs-teacher-red);
  outline-offset: 4px;
}

.lwlhs-teacher-dossier {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(48px, 8vw, 124px);
  align-items: start;
}

.lwlhs-teacher-dossier__rail {
  position: sticky;
  top: 36px;
}

.lwlhs-teacher-dossier__portrait {
  aspect-ratio: 4 / 5;
  border-bottom: 4px solid var(--lwlhs-teacher-red);
}

.lwlhs-teacher-facts {
  margin: 0;
  border-inline: 1px solid var(--lwlhs-teacher-rule);
  background: var(--lwlhs-teacher-paper);
}

.lwlhs-teacher-facts div {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--lwlhs-teacher-rule);
  padding: 18px 20px;
}

.lwlhs-teacher-facts dt {
  color: var(--lwlhs-teacher-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lwlhs-teacher-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.lwlhs-teacher-profile-header {
  padding-bottom: clamp(36px, 5vw, 62px);
}

.lwlhs-teacher-profile-header h1 {
  max-width: 14ch;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
}

.lwlhs-teacher-profile-header__role {
  margin: 23px 0 0;
  color: var(--lwlhs-teacher-red);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 750;
  line-height: 1.55;
}

.lwlhs-teacher-profile-header__intro {
  max-width: 54ch;
  margin: 26px 0 0;
  color: #3d3d3d;
  font-family: var(--lwlhs-teacher-serif);
  font-size: clamp(20px, 2.3vw, 29px);
  line-height: 1.7;
}

.lwlhs-teacher-section {
  margin: 0;
  border-top: 1px solid var(--lwlhs-teacher-ink);
  padding-block: clamp(34px, 5vw, 58px);
}

.lwlhs-teacher-section h2 {
  margin-bottom: 24px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.25;
}

.lwlhs-teacher-prose {
  max-width: 72ch;
  color: #3d3d3d;
  font-size: 17px;
  line-height: 1.95;
}

.lwlhs-teacher-prose > :first-child {
  margin-top: 0;
}

.lwlhs-teacher-prose > :last-child {
  margin-bottom: 0;
}

.lwlhs-teacher-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: credential;
}

.lwlhs-teacher-detail-list li {
  display: grid;
  grid-template-columns: 48px minmax(150px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: baseline;
  border-bottom: 1px solid var(--lwlhs-teacher-rule);
  padding-block: 18px;
  counter-increment: credential;
}

.lwlhs-teacher-detail-list li::before {
  color: var(--lwlhs-teacher-red);
  content: counter(credential, decimal-leading-zero);
  font-family: Georgia, "Times New Roman", serif;
}

.lwlhs-teacher-detail-list strong {
  font-family: var(--lwlhs-teacher-serif);
  font-size: 18px;
}

.lwlhs-teacher-detail-list span,
.lwlhs-teacher-focus-grid span {
  color: var(--lwlhs-teacher-muted);
  font-size: 14px;
  line-height: 1.75;
}

.lwlhs-teacher-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--lwlhs-teacher-rule);
  border-left: 1px solid var(--lwlhs-teacher-rule);
}

.lwlhs-teacher-focus-grid div {
  display: grid;
  gap: 9px;
  border-right: 1px solid var(--lwlhs-teacher-rule);
  border-bottom: 1px solid var(--lwlhs-teacher-rule);
  padding: 24px;
  background: var(--lwlhs-teacher-paper);
}

.lwlhs-teacher-focus-grid strong {
  font-family: var(--lwlhs-teacher-serif);
  font-size: 19px;
}

.lwlhs-teacher-section--quote {
  position: relative;
  margin-block: 0;
  border-top-color: var(--lwlhs-teacher-red);
  padding-inline: clamp(28px, 5vw, 64px);
  color: var(--lwlhs-teacher-deep-red);
  background: var(--lwlhs-teacher-soft-red);
}

.lwlhs-teacher-section--quote::before {
  display: block;
  margin-bottom: 8px;
  content: "“";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: 0.7;
}

.lwlhs-teacher-section--quote p {
  margin: 0;
  font-family: var(--lwlhs-teacher-serif);
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.6;
}

.lwlhs-teacher-adjacent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(42px, 6vw, 72px);
  border-block: 1px solid var(--lwlhs-teacher-rule);
}

.lwlhs-teacher-adjacent a {
  display: flex;
  min-height: 92px;
  justify-content: center;
  padding: 18px 22px;
  color: inherit;
  text-decoration: none;
  flex-direction: column;
}

.lwlhs-teacher-adjacent a + a {
  border-left: 1px solid var(--lwlhs-teacher-rule);
  text-align: right;
}

.lwlhs-teacher-adjacent a[rel="next"]:first-child {
  grid-column: 2;
  border-left: 1px solid var(--lwlhs-teacher-rule);
  text-align: right;
}

.lwlhs-teacher-adjacent span {
  color: var(--lwlhs-teacher-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lwlhs-teacher-adjacent strong {
  margin-top: 7px;
  font-family: var(--lwlhs-teacher-serif);
  font-size: 19px;
}

.lwlhs-teacher-adjacent a:hover strong,
.lwlhs-teacher-adjacent a:focus-visible strong {
  color: var(--lwlhs-teacher-red);
}

.lwlhs-teacher-cta {
  margin-top: 30px;
}

.lwlhs-teacher-cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 11px 18px;
  color: #fff;
  background: var(--lwlhs-teacher-red);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.lwlhs-teacher-cta a:hover {
  background: var(--lwlhs-teacher-deep-red);
}

.lwlhs-teacher-editor-state {
  display: flex;
  min-height: 140px;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--lwlhs-teacher-red);
  padding: 28px;
  background: var(--lwlhs-teacher-soft-red);
  text-align: center;
  flex-direction: column;
}

.lwlhs-teacher-editor-state strong {
  font-family: var(--lwlhs-teacher-serif);
  font-size: 24px;
}

.lwlhs-teacher-editor-state span {
  max-width: 54ch;
  margin-top: 8px;
  color: var(--lwlhs-teacher-muted);
  line-height: 1.7;
}

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

  .lwlhs-teacher-dossier {
    gap: clamp(36px, 5vw, 62px);
  }
}

@media (max-width: 767px) {
  .lwlhs-teacher-directory__inner,
  .lwlhs-teacher-single__inner {
    width: min(100% - 28px, 1380px);
  }

  .lwlhs-teacher-directory__header {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

  .lwlhs-teacher-directory__heading h1 {
    max-width: none;
  }

  .lwlhs-teacher-dossier {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lwlhs-teacher-dossier__rail {
    position: static;
  }

  .lwlhs-teacher-profile-header h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .lwlhs-teacher-detail-list li {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .lwlhs-teacher-detail-list span {
    grid-column: 2;
  }
}

@media (max-width: 639px) {
  .lwlhs-teacher-grid,
  .lwlhs-teacher-focus-grid,
  .lwlhs-teacher-adjacent {
    grid-template-columns: 1fr;
  }

  .lwlhs-teacher-card__role {
    min-height: 0;
  }

  .lwlhs-teacher-facts div {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .lwlhs-teacher-adjacent a + a,
  .lwlhs-teacher-adjacent a[rel="next"]:first-child {
    grid-column: 1;
    border-top: 1px solid var(--lwlhs-teacher-rule);
    border-left: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lwlhs-teacher-directory *,
  .lwlhs-teacher-single * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
