/* SEEK2LRN — educator profile (templates/educator.php), in the site's flat
   editorial design: white, square corners, Roboto Slab display, Inter text,
   hairline rules. Colour tokens (--s2e-*) come from find-a-tutor.css, loaded
   first for the Book classes card, whose own styles are scoped to .s2t-page. */
body.s2l-educator-page { margin: 0; background: #fff; }
body.s2l-educator-page .s2l-blm { background: #fff; }

.s2x { max-width: 1240px; margin: 0 auto; padding: calc(var(--s2l-nav-h, 58px) + 24px) 24px 64px; box-sizing: border-box; font-family: Inter, system-ui, sans-serif; color: var(--s2e-ink); }
.s2x-back { display: inline-block; margin-bottom: 20px; font-size: 0.9rem; color: var(--s2e-blue); text-decoration: none; }
.s2x-back:hover { text-decoration: underline; }

.s2x-card { display: grid; grid-template-columns: minmax(300px, 400px) 1px minmax(0, 1fr); gap: 0 40px; border: 1px solid var(--s2e-line); padding: 32px; }
.s2x-rule { background: var(--s2e-line); }

/* left: photo, facts, Book classes */
.s2x-left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.s2x-photo { aspect-ratio: 590 / 430; border: 1px solid var(--s2e-ink); background: var(--s2e-tint, #EEF3FC); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.s2x-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s2x-initials { font-family: 'Roboto Slab', Georgia, serif; font-weight: 300; font-size: 3.5rem; color: var(--s2e-blue); }

.s2x-facts { display: grid; grid-template-columns: 128px 1fr; gap: 10px 14px; margin: 0; font-size: 0.92rem; line-height: 1.45; }
.s2x-facts dt { color: var(--s2e-muted); font-weight: 500; }
.s2x-facts dd { margin: 0; }
.s2x-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.s2x-tags li { border: 1px solid var(--s2e-line); padding: 2px 8px; font-size: 0.85rem; }
.s2x-rates { display: flex; flex-direction: column; gap: 4px; }
.s2x-rates b { font-family: 'Roboto Slab', Georgia, serif; font-weight: 400; font-size: 1.15rem; }
.s2x-rates small, .s2x-note { color: var(--s2e-muted); font-size: 0.8rem; }

.s2x-book { border: 1px solid var(--s2e-ink); padding: 16px; }
.s2x-book h2 { margin: 0 0 12px; font-family: 'Roboto Slab', Georgia, serif; font-weight: 300; font-size: 1.35rem; }
.s2x-book-note { margin: 0; font-size: 0.9rem; color: var(--s2e-muted); }
/* the Find an Educator card, without its photo strip and name (shown on this page already) */
.s2x-book .s2t-tcard { min-height: 0; border: 0; padding: 0; box-shadow: none; background: none; display: block; }
.s2x-book .s2t-t-media, .s2x-book .s2t-t-id { display: none; }
.s2x-book .s2t-t-body { display: flex; flex-direction: column; gap: 16px; padding: 0; position: static; }
.s2x-book .s2t-t-cta, .s2x-book .s2t-t-groups { margin: 0; padding: 0; border: 0; width: auto; flex: none; min-width: 0; min-height: 0; }

/* right: name, bio scrolling on its own */
.s2x-right { display: flex; flex-direction: column; min-width: 0; }
.s2x-head h1 { margin: 0; font-family: 'Roboto Slab', Georgia, serif; font-weight: 300; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.1; letter-spacing: -0.01em; }
.s2x-head p { margin: 8px 0 0; color: var(--s2e-muted); font-size: 1rem; }
.s2x-bio { margin-top: 24px; padding-right: 12px; max-height: calc(100vh - var(--s2l-nav-h, 58px) - 220px); min-height: 240px; overflow-y: auto; font-size: 1.02rem; line-height: 1.75; border-top: 1px solid var(--s2e-line); padding-top: 20px; }
.s2x-bio:focus-visible { outline: 2px solid var(--s2e-blue); outline-offset: 2px; }
.s2x-bio p { margin: 0 0 1em; }

@media (max-width: 860px) {
  .s2x { padding-left: 16px; padding-right: 16px; }
  .s2x-card { grid-template-columns: 1fr; gap: 28px; padding: 20px; }
  .s2x-rule { display: none; }
  .s2x-right { order: -1; } /* name first on a phone, then photo and details */
  .s2x-bio { max-height: none; overflow: visible; min-height: 0; }
}
