/* SEEK2LRN — search pages (templates/search-page.php), in the site's flat
   editorial design, as the educator profile: white, square corners, Roboto Slab
   300 display, Inter text, hairline rules, one blue. The photo is pinned on
   the left while the article scrolls on the right of a 1px divider. */
body.s2l-search-page { margin: 0; background: #fff; }
body.s2l-search-page .s2l-blm { background: #fff; }

.s2s {
  --s2e-blue: #1558D6;
  --s2e-blue-dark: #0E3FA3;
  --s2e-ink: #16203A;
  --s2e-muted: #475569;
  --s2e-line: #E3E8F3;
  --s2e-tint: #EEF3FC;
  --s2s-top: calc(var(--s2l-nav-h, 58px) + 24px);
  --s2s-frame: clamp(20px, 2.4vw, 36px); /* the same white space left, above, below and right of the photo */
  box-sizing: border-box;
  padding: var(--s2l-nav-h, 58px) 24px 72px 0; /* the left column carries its own frame */
  display: grid; grid-template-columns: minmax(280px, 38vw) 1px minmax(0, 1fr); gap: 0;
  font-family: Inter, system-ui, sans-serif; color: var(--s2e-ink);
}
.s2s *, .s2s *::before, .s2s *::after { box-sizing: border-box; }
.s2s-rule { background: var(--s2e-line); }

/* left: the photo, pinned */
.s2s-left { min-width: 0; padding: var(--s2s-frame); }
.s2s-photo { position: sticky; top: calc(var(--s2l-nav-h, 58px) + var(--s2s-frame)); margin: 0; height: calc(100vh - var(--s2l-nav-h, 58px) - 2 * var(--s2s-frame)); background: var(--s2e-tint); overflow: hidden; }
.s2s-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* right: board logo, title, article */
.s2s-right { min-width: 0; max-width: calc(760px + 48px); padding: 24px 0 0 48px; font-size: 1.02rem; line-height: 1.75; }
.s2s .s2s-board { display: block; height: 64px; width: auto; max-width: min(100%, 220px); margin: 0 0 28px; object-fit: contain; object-position: left center; }
.s2s-right h1 { margin: 0 0 20px; font-family: 'Roboto Slab', Georgia, serif; font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }

.s2s-content > * { margin: 0 0 1em; }
.s2s-content h2 { margin: 56px 0 18px; padding-top: 28px; border-top: 1px solid var(--s2e-line); font-family: 'Roboto Slab', Georgia, serif; font-weight: 300; font-size: clamp(1.55rem, 2.4vw, 1.95rem); line-height: 1.2; text-wrap: balance; scroll-margin-top: var(--s2s-top); }
.s2s-content h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.s2s-content a { color: var(--s2e-blue); text-underline-offset: 2px; }
.s2s-content ul { padding-left: 1.2em; }
.s2s-lead { font-size: 1.12rem; color: var(--s2e-muted); }
.s2s-points { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.s2s-points li { border: 1px solid var(--s2e-line); padding: 2px 10px; font-size: 0.9rem; }

/* buttons: square, flat */
.s2s-actions, .s2s-tutor-links { display: flex; flex-wrap: wrap; gap: 10px; }
.s2s .s2s-btn { display: inline-block; padding: 10px 18px; border: 1px solid var(--s2e-blue); background: var(--s2e-blue); color: #fff; font-size: 0.95rem; font-weight: 500; line-height: 1.3; text-decoration: none; }
.s2s .s2s-btn:hover { background: var(--s2e-blue-dark); border-color: var(--s2e-blue-dark); }
.s2s .s2s-btn--line { background: #fff; color: var(--s2e-blue); }
.s2s .s2s-btn--line:hover { background: var(--s2e-tint); color: var(--s2e-blue-dark); }
.s2s a:focus-visible { outline: 2px solid var(--s2e-blue); outline-offset: 2px; }

/* the educator cards: rows between hairlines, as on Find an Educator */
.s2s-tutors { display: grid; border-top: 2px solid var(--s2e-ink); border-bottom: 2px solid var(--s2e-ink); margin: 0 0 1em; }
.s2s-tutor { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; padding: 24px 0; }
.s2s-tutor + .s2s-tutor { border-top: 1px solid var(--s2e-line); }
/* each photo at its own proportions: nothing is stretched or cropped, tall ones are capped */
.s2s-tutor-photo { display: flex; align-items: flex-start; }
.s2s .s2s-tutor-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 220px; border: 1px solid var(--s2e-ink); }
.s2s-tutor-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.s2s-content .s2s-tutor h3 { margin: 0; font-family: 'Roboto Slab', Georgia, serif; font-weight: 400; font-size: 1.35rem; }
.s2s-content .s2s-tutor h3 a { color: var(--s2e-ink); text-decoration: none; }
.s2s-content .s2s-tutor h3 a:hover { color: var(--s2e-blue); }
.s2s-tutor-headline { margin: -6px 0 0; color: var(--s2e-muted); font-size: 0.95rem; }
.s2s-tutor-facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; font-size: 0.9rem; line-height: 1.4; }
.s2s-tutor-facts dt { color: var(--s2e-muted); font-size: 0.8rem; }
.s2s-tutor-facts dd { margin: 0; font-weight: 500; }
.s2s-tutor-text { font-size: 0.97rem; line-height: 1.65; }
.s2s-tutor-text p { margin: 0 0 0.6em; }
.s2s-tutor-text p:last-child { margin: 0; }
.s2s-tags { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.s2s-tags li { border: 1px solid var(--s2e-line); padding: 1px 8px; font-size: 0.82rem; }
.s2s-tutor-links { margin: 4px 0 0 !important; }
.s2s-tutor-links .s2s-btn { padding: 7px 14px; font-size: 0.88rem; }

/* sections: short items in two columns, a checklist, the FAQ */
.s2s-items { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.s2s-items > div > p { margin: 0; color: var(--s2e-muted); font-size: 0.97rem; line-height: 1.6; }
.s2s-checks { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.s2s-checks li { padding-left: 22px; position: relative; }
.s2s-checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; background: var(--s2e-blue); }
.s2s-faq { border-top: 1px solid var(--s2e-line); }
.s2s-faq details { border-bottom: 1px solid var(--s2e-line); padding: 14px 0; }
.s2s-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.s2s-faq summary::-webkit-details-marker { display: none; }
.s2s-faq summary::after { content: "+"; font-family: 'Roboto Slab', Georgia, serif; font-weight: 300; font-size: 1.4rem; line-height: 1; color: var(--s2e-blue); }
.s2s-faq details[open] summary::after { content: "\2212"; }
.s2s-faq details p { margin: 10px 0 0; color: var(--s2e-muted); }

@media (max-width: 1100px) {
  .s2s { grid-template-columns: minmax(240px, 34vw) 1px minmax(0, 1fr); }
  .s2s-right { padding-left: 32px; }
  .s2s-tutor { grid-template-columns: 132px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 860px) {
  .s2s { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .s2s-left { padding: 16px 0 0; } /* on a phone the page's own 16px gutter frames the photo */
  .s2s-right { padding-left: 0; }
  .s2s-rule { display: none; }
  .s2s-photo { position: static; height: auto; aspect-ratio: 4 / 3; margin-bottom: 28px; }
  .s2s-items, .s2s-checks { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .s2s-tutor { grid-template-columns: 1fr; }
  .s2s .s2s-tutor-photo img { max-height: 260px; }
}

/* phones: 48px full-width actions, 48px FAQ rows, photo already stacks above the text (860px rule) */
@media (max-width: 860px) {
  .s2s .s2s-btn, .s2s-content .s2s-tutor h3 a { display: flex; align-items: center; justify-content: center; min-height: 48px; }
  .s2s-content .s2s-tutor h3 a { justify-content: flex-start; min-height: 44px; }
  .s2s-actions .s2s-btn, .s2s-tutor-links .s2s-btn { flex: 1 1 100%; }
  .s2s-faq summary { min-height: 48px; align-items: center; }
  .s2s-content a:not(.s2s-btn) { overflow-wrap: anywhere; }
}
