/* Public instructor and tutoring refresh. Load after mathtopia-ui.css. */
.mt-faculty-refresh *, .mt-tutoring-refresh * { box-sizing: border-box; }
.mt-faculty-refresh .mt-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mt-faculty-refresh .mt-faculty-hero-actions, .mt-faculty-refresh .mt-faculty-component-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }
.mt-faculty-refresh .mt-faculty-section-heading, .mt-tutoring-refresh .mt-faculty-section-heading { max-width: 790px; margin-bottom: 30px; }
.mt-faculty-refresh .mt-faculty-section-heading h2, .mt-tutoring-refresh .mt-faculty-section-heading h2 { color: #082e46; font-size: clamp(28px, 3.1vw, 39px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 14px; }
.mt-faculty-refresh .mt-faculty-section-heading p, .mt-tutoring-refresh .mt-faculty-section-heading p { color: #496675; font-size: 17px; line-height: 1.75; margin: 0; }
.mt-faculty-refresh .mt-faculty-section-heading .mt-eyebrow, .mt-tutoring-refresh .mt-faculty-section-heading .mt-eyebrow { font-size: 12px; color: #315d76; margin: 0 0 14px; }
.mt-faculty-refresh .mt-faculty-grid { align-items: stretch; }
.mt-faculty-refresh .mt-faculty-card { display: flex; flex-direction: column; border-color: #d4e2eb; box-shadow: 0 5px 18px #153f5610; }
.mt-faculty-refresh .mt-faculty-card > .mt-faculty-photo { display: grid; flex: 0 0 auto; height: auto; aspect-ratio: 4 / 3; background: #eef4f6; border-bottom: 1px solid #dce7ed; }
.mt-faculty-refresh .mt-faculty-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 14px; }
.mt-faculty-refresh .mt-faculty-copy { gap: 0; }
.mt-faculty-refresh .mt-faculty-copy h3 { font-size: 23px; line-height: 1.25; font-weight: 800; margin: 0 0 12px; letter-spacing: -.025em; }
.mt-faculty-refresh .mt-faculty-copy h3 a { color: #103c55; text-decoration: none; }
.mt-faculty-refresh .mt-faculty-copy h3 a:hover { color: #075eaa; text-decoration: underline; }
.mt-faculty-refresh .mt-faculty-copy .mt-faculty-position { color: #235c7a; font-size: 15px; line-height: 1.6; font-weight: 700; margin: 0 0 17px; }
.mt-faculty-refresh .mt-faculty-copy .mt-faculty-bio { color: #496675; font-size: 16px; line-height: 1.75; margin: 0 0 22px; overflow-wrap: anywhere; }
.mt-faculty-refresh .mt-faculty-copy .mt-card-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #075eaa; font-size: 15px; font-weight: 750; text-decoration: underline; }
.mt-faculty-refresh .mt-faculty-component-actions { margin-top: 32px; }
.mt-faculty-component { padding: 60px 0; background: #f8fbfc; border-block: 1px solid #e1ebf0; }
.mt-faculty-refresh .mt-consultation-panel, .mt-tutoring-refresh .mt-consultation-panel { background: #edf5f9; border: 1px solid #d2e3ec; border-radius: 18px; padding: 36px; }
.mt-faculty-refresh .mt-info-next.mt-consultation-panel { margin-bottom: 60px; }
.mt-faculty-refresh .mt-consultation-actions { flex: 0 0 300px; display: flex; flex-direction: column; align-items: flex-start; }
.mt-faculty-refresh .mt-consultation-actions .mt-text-link { margin-bottom: 0; }
.mt-faculty-refresh .mt-consultation-note, .mt-tutoring-refresh .mt-consultation-note { color: #4d6879; font-size: 14px; line-height: 1.65; margin: 18px 0 0; max-width: 690px; }
.mt-tutoring-refresh { color: #12394f; font-size: 17px; line-height: 1.7; }
.mt-tutoring-refresh h1, .mt-tutoring-refresh h2, .mt-tutoring-refresh h3 { color: #082e46; font-weight: 800; letter-spacing: -.035em; }
.mt-tutoring-refresh .mt-tutoring-hero { padding: 58px 0; background: linear-gradient(115deg, #edf6fb, #f4f9ec); border-bottom: 1px solid #d9e7df; }
.mt-tutoring-refresh .mt-tutoring-hero-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); gap: 48px; align-items: center; }
.mt-tutoring-refresh .mt-tutoring-hero h1 { font-size: clamp(39px, 4.5vw, 59px); margin: 16px 0 24px; }
.mt-tutoring-refresh .mt-tutoring-intro { color: #456375; font-size: 21px; line-height: 1.65; }
.mt-tutoring-refresh .mt-tutoring-actions { gap: 12px 24px; }
.mt-tutoring-refresh .mt-tutoring-actions .mt-text-link { margin: 0; }
.mt-tutoring-refresh .mt-tutoring-intro-card { padding: 32px; background: #fff; border: 1px solid #d6e4eb; border-top: 5px solid #76a544; border-radius: 15px; box-shadow: 0 9px 30px #12394f09; }
.mt-tutoring-refresh .mt-tutoring-intro-card h2 { font-size: 29px; line-height: 1.25; margin: 19px 0 18px; }
.mt-tutoring-refresh .mt-tutoring-intro-card p { color: #496675; margin: 0 0 20px; }
.mt-tutoring-refresh .mt-tutoring-intro-card ul, .mt-tutoring-refresh .mt-tutoring-request-list ul { list-style: disc; padding-left: 21px; margin: 0; }
.mt-tutoring-refresh .mt-tutoring-intro-card li, .mt-tutoring-refresh .mt-tutoring-request-list li { margin: 9px 0; }
.mt-tutoring-refresh .mt-tutoring-intro-card .mt-text-link { margin: 17px 0 0; font-size: 15px; }
.mt-tutoring-refresh .mt-tutoring-formats { padding-top: 54px; }
.mt-tutoring-refresh .mt-tutoring-options { padding-top: 0; padding-bottom: 28px; }
.mt-tutoring-refresh .mt-option-card h3 { font-size: 30px; line-height: 1.2; margin: 17px 0; }
.mt-tutoring-refresh .mt-option-card p { color: #496675; margin: 0 0 18px; }
.mt-tutoring-refresh .mt-option-card ul { margin-bottom: 0; }
.mt-tutoring-refresh .mt-tutoring-process { padding-top: 27px; padding-bottom: 44px; }
.mt-tutoring-refresh .mt-tutoring-next { padding-bottom: 45px; }
.mt-tutoring-refresh .mt-tutoring-request { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr); gap: 40px; align-items: center; }
.mt-tutoring-refresh .mt-tutoring-request h2 { font-size: 34px; margin: 0 0 18px; }
.mt-tutoring-refresh .mt-tutoring-request p { margin-top: 0; }
.mt-tutoring-refresh .mt-tutoring-request .mt-eyebrow { font-size: 12px; margin-bottom: 13px; }
.mt-tutoring-refresh .mt-tutoring-request .mt-consultation-note { font-size: 14px; margin-top: 18px; }
.mt-tutoring-refresh .mt-tutoring-request-list { padding-left: 28px; border-left: 1px solid #bcd4e2; }
.mt-tutoring-refresh .mt-tutoring-request-list h3 { font-size: 22px; line-height: 1.3; margin: 0 0 20px; }
.mt-tutoring-refresh .mt-tutoring-other-paths { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 16px; }
@media (max-width: 1000px) {
  .mt-tutoring-refresh .mt-tutoring-hero-layout { gap: 28px; grid-template-columns: minmax(0, 1.3fr) minmax(270px, 1fr); }
  .mt-tutoring-refresh .mt-tutoring-intro-card { padding: 26px; }
  .mt-faculty-refresh .mt-consultation-actions { flex-basis: auto; }
}
@media (max-width: 800px) {
  .mt-tutoring-refresh .mt-tutoring-hero-layout, .mt-tutoring-refresh .mt-tutoring-request { grid-template-columns: 1fr; gap: 28px; }
  .mt-tutoring-refresh .mt-tutoring-hero { padding: 38px 0; }
  .mt-tutoring-refresh .mt-tutoring-hero h1 { font-size: 42px; }
  .mt-tutoring-refresh .mt-tutoring-intro { font-size: 19px; }
  .mt-tutoring-refresh .mt-tutoring-formats { padding-top: 36px; }
  .mt-tutoring-refresh .mt-tutoring-request-list { padding: 24px 0 0; border-left: 0; border-top: 1px solid #bcd4e2; }
  .mt-faculty-refresh .mt-consultation-panel, .mt-tutoring-refresh .mt-consultation-panel { padding: 27px; }
  .mt-faculty-component { padding: 40px 0; }
}
@media (max-width: 560px) {
  .mt-faculty-refresh .mt-faculty-hero-actions, .mt-faculty-refresh .mt-faculty-component-actions { align-items: stretch; flex-direction: column; gap: 4px; }
  .mt-faculty-refresh .mt-faculty-card > .mt-faculty-photo { aspect-ratio: 1.18; }
  .mt-faculty-refresh .mt-faculty-copy h3 { font-size: 25px; }
  .mt-faculty-refresh .mt-info-next.mt-consultation-panel { margin-bottom: 40px; }
  .mt-faculty-refresh .mt-consultation-actions, .mt-faculty-refresh .mt-consultation-actions .mt-button { width: 100%; }
  .mt-tutoring-refresh .mt-tutoring-hero h1 { font-size: 39px; }
  .mt-tutoring-refresh .mt-tutoring-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .mt-tutoring-refresh .mt-tutoring-actions .mt-button { width: 100%; }
  .mt-tutoring-refresh .mt-tutoring-request h2 { font-size: 29px; }
  .mt-faculty-refresh .mt-consultation-panel, .mt-tutoring-refresh .mt-consultation-panel { padding: 24px; }
}

/* Keep stored biographies intact, with a readable text measure. */
.mt-profile-refresh .mt-profile-grid { align-items: center; }
.mt-profile-refresh .mt-profile-photo { min-height: 0; }
.mt-profile-refresh .mt-profile-photo img { max-height: 360px; object-fit: contain; padding: 12px; }
.mt-profile-refresh .mt-profile-intro { color: #496675; max-width: 58ch; font-size: 18px; line-height: 1.75; }
.mt-profile-refresh .mt-profile-bio-section { padding-top: 48px; padding-bottom: 10px; }
.mt-profile-refresh .mt-profile-bio { max-width: 74ch; font-size: 18px; line-height: 1.9; }
.mt-profile-refresh .mt-profile-bio-section h2 { font-size: 30px; }
@media (max-width: 560px) { .mt-profile-refresh .mt-profile-bio-section { padding-top: 32px; } }

.mt-faculty-refresh .mt-faculty-card>.mt-faculty-photo{position:relative}
.mt-faculty-refresh .mt-faculty-card>.mt-faculty-photo>img{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
