.teacher-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  overflow: hidden;
  color: #f7f8ef;
  background: radial-gradient(ellipse at 77% 68%, #385549 0%, #233a30 38%, #16281f 76%);
  border: 1px solid #263e31;
  border-radius: clamp(.85rem, 2vw, 1.75rem);
}
.teacher-card-copy { padding: clamp(1.6rem, 4.5vw, 3.75rem); padding-right: 0; }
.teacher-card-label {
  margin-bottom: .9rem;
  color: var(--lime);
  font-size: var(--text-ui);
  font-weight: 750;
  letter-spacing: -.01em;
}
.teacher-name {
  font-size: clamp(2.25rem, 1.48rem + 2.7vw, 3.5rem);
  font-weight: 820;
  letter-spacing: -.055em;
  line-height: 1.12;
}
.teacher-name span { margin-left: .11em; color: var(--lime); }
.teacher-credentials {
  max-width: 32rem;
  margin: 1.45rem 0 1.35rem;
  padding: 0;
  list-style: none;
}
.teacher-credentials li {
  padding-block: .55rem;
  color: #e0e9df;
  border-bottom: 1px solid #cfebce29;
  font-size: 1rem;
  letter-spacing: -.015em;
}
.teacher-credentials .teacher-degree { color: #fff; font-weight: 780; }
.teacher-credentials .teacher-former { color: #cbd8cc; font-size: var(--text-ui); }
.teacher-tenure {
  display: inline-block;
  margin-right: .25em;
  color: var(--lime);
  font-size: .84em;
  font-weight: 780;
}
.teacher-card-link { color: var(--lime); font-size: .92rem; font-weight: 760; text-underline-offset: .23em; }
.teacher-card-link:hover { color: #f2ffd2; }
.teacher-card-link span { display: inline-block; padding-left: .25em; }
.teacher-card-photo img {
  width: 100%;
  height: auto;
  max-height: 31rem;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(#000 93%, #000d 97%, transparent);
}
.teacher-card-photo { align-self: end; }
.teacher-highlights h2 {
  margin-bottom: .9rem;
  font-size: clamp(1.1875rem, 1.06rem + .55vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -.035em;
}
.teacher-highlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.teacher-highlight-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: clamp(1rem, 2.3vw, 1.65rem);
  border: 1px solid #d9e2d3;
  border-radius: .65rem;
  background: #eef2e9;
}
.teacher-highlight-list strong { color: #284f32; font-size: var(--text-card); line-height: 1.3; letter-spacing: -.035em; }
.teacher-highlight-list strong span { margin-left: .35rem; color: #47634b; font-size: .84rem; font-weight: 750; }
.teacher-highlight-list p { font-weight: 730; line-height: 1.42; letter-spacing: -.027em; }
.teacher-highlight-year { margin-top: auto; color: var(--muted); font-size: .81rem; }
.teacher-awards {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 7vw, 6rem);
  margin-top: clamp(2.4rem, 5vw, 4.25rem);
}
.teacher-awards-intro h3 {
  font-size: clamp(1.375rem, 1.15rem + .95vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -.04em;
  margin: 0;
}
.teacher-awards-intro p { margin-top: .95rem; max-width: 31em; color: var(--muted); }
.teacher-awards-intro .text-link { display: inline-block; margin-top: 1.2rem; }
.teacher-awards-photo {
  width: min(100%, 18.5rem);
  margin-top: 1.5rem;
  border: 1px solid var(--edge);
  border-radius: .6rem;
  overflow: hidden;
}
.teacher-awards-photo img { width: 100%; height: auto; }
.teacher-record {
  position: relative;
  border: 1px solid #d8ded0;
  border-bottom: 0;
  border-radius: .65rem .65rem 0 0;
  padding: clamp(1rem, 3vw, 1.8rem);
  background: #fffef9;
  color: #25392b;
  box-shadow: 0 .65rem 1.4rem #23372a0c;
}
.teacher-record::after {
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  height: .52rem;
  content: "";
  background: conic-gradient(from 135deg at 50% 0, #fffef9 90deg, transparent 0) 0 0 / 1.05rem .55rem repeat-x;
}
.receipt-top { margin-bottom: 1rem; }
.receipt-top h4 { margin: 0; font-size: 1rem; letter-spacing: -.025em; }
.receipt-count {
  margin: .28rem 0 .32rem;
  font-size: clamp(1.875rem, 1.45rem + 1.65vw, 2.75rem);
  font-weight: 830;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.075em;
  line-height: 1.04;
}
.receipt-count span { margin-left: .3em; font-size: .4em; letter-spacing: normal; }
#receipt-hint { color: var(--muted); font-size: .86rem; }
.receipt-scroll {
  max-height: 29rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-color: #8a9e87 #eef1e8;
  padding-right: .4rem;
  border-block: 1px dashed #afbfab;
}
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .93rem;
  line-height: 1.48;
}
.receipt-table caption {
  text-align: left;
  color: #243a2b;
  font-weight: 830;
  padding-block: .7rem .35rem;
}
.receipt-table + .receipt-table caption { padding-top: 1rem; }
.receipt-year th {
  padding: .36rem .45rem;
  background: #edf2e7;
  color: #365638;
  font-weight: 780;
  font-size: .8rem;
}
.receipt-table td { border-bottom: 1px dotted #d6ded0; padding: .48rem .35rem; vertical-align: top; }
.receipt-table td:last-child { color: #345235; white-space: nowrap; text-align: right; font-weight: 780; }
.receipt-table small { display: block; margin-top: .12rem; color: var(--muted); font-size: .78rem; }
.receipt-source {
  grid-column: 1 / -1;
  scroll-margin-top: 6rem;
  border: 1px solid var(--edge);
  border-radius: .65rem;
  background: #fffef9;
  color: #25392b;
}
.receipt-source summary {
  padding: .95rem clamp(1rem, 3vw, 1.8rem);
  cursor: pointer;
  font-weight: 760;
}
.receipt-source[open] summary { border-bottom: 1px solid var(--edge); }
.receipt-source-body { padding: clamp(1rem, 3vw, 1.8rem); }
.receipt-source-body h4 { margin: 0; font-size: 1.15rem; }
.receipt-source-body p { margin: .45rem 0 1.25rem; color: var(--muted); font-size: .9rem; }
.receipt-source-images { display: grid; gap: 1.35rem; max-width: 58rem; margin-inline: auto; }
.receipt-source-images figure { margin: 0; }
.receipt-source-images figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .875rem;
}
.receipt-source-images a { color: #345235; text-decoration: underline; text-underline-offset: .2em; }
.receipt-source-images img,
.receipt-source-high { display: block; width: 100%; height: auto; border: 1px solid var(--edge); }
.receipt-source-body .receipt-source-high-heading { margin: 1.65rem 0 .65rem; }
.receipt-source-high { max-width: 21.5rem; }
@media (max-width: 43rem) {
  .teacher-card, .teacher-awards { grid-template-columns: minmax(0, 1fr); }
  .teacher-card-copy { padding: 1.5rem 1.25rem .9rem; }
  .teacher-card-photo { width: min(100%, 21rem); justify-self: end; }
  .teacher-awards-photo { display: none; }
  .teacher-highlight-list { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .receipt-table { font-size: .86rem; }
}
