/* The marketplace promise and full tutor biographies share one two-cell section. */
.team-page .team-page-intro { padding: 28px 0 0; }
.team-page-intro > .container, .team-page .cta > .container { width: min(calc(100% - 80px), 1280px); }
.team-page-intro h1 { max-width: none; margin: 6px 0 24px; font-size: clamp(2rem, 2.8vw, 2.5rem); line-height: 1.08; letter-spacing: -0.045em; }
.team-page-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; align-items: start; }
.team-page-info { display: grid; gap: 20px; min-width: 0; }
.team-page-coverage-cell { min-width: 0; padding: 28px; border-radius: var(--radius-xl); background: var(--teal-soft); color: var(--ink); }
.team-page-coverage-cell p { margin: 0; font-size: 1rem; line-height: 1.55; }
.team-page-promise-cell { min-width: 0; padding: 28px; border-radius: var(--radius-xl); background: var(--teal-soft); color: var(--ink); }
.team-page-promise-cell p { margin: 0; font-size: 1rem; line-height: 1.55; }
.team-page-promise-cell .team-page-promise { margin-bottom: 0; }
.team-page-promise-cell .team-page-promise,
.team-page-coverage-cell p,
.team-biography .team-biography-role + p { color: var(--heading); font-size: 1.25rem; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.team-page-viewer { min-width: 0; }
.team-page-viewer:focus-visible { outline: 3px solid var(--orange-text); outline-offset: 6px; }
.team-biography { display: flow-root; min-width: 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--paper); scroll-margin-top: calc(var(--sticky-header-height, 95px) + 20px); }
.team-biography + .team-biography { margin-top: 20px; }
.team-card-content { display: flow-root; height: auto; }
.team-biography h2 { margin: 0 0 8px; color: var(--heading); font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.2; letter-spacing: -0.025em; }
.team-biography p { margin: 0 0 12px; line-height: 1.55; }
.team-biography p:last-child { margin-bottom: 0; }
.team-biography .team-biography-role { color: var(--orange-text); font-size: .95rem; font-weight: 800; line-height: 1.5; }
.team-biography .framework-portrait-frame { width: 135px; height: 200px; margin-left: 22px; margin-bottom: 14px; }
.team-biography .framework-portrait-placeholder { margin-left: 22px; }
.team-biography-availability { padding-top: 12px; border-top: 1px solid var(--line); font-size: .95rem; }
/* As in Reviews, enhancement supplies ring geometry and natural card height. */
.team-deck-enhanced .team-deck-stage { overflow: clip; padding-block: 8px; margin-block: -6px; perspective: 1600px; touch-action: pan-y; }
.team-deck-enhanced .team-profiles { position: relative; width: min(560px, calc(100% - 90px)); margin: 0 auto; transform-style: preserve-3d; transition: transform 1100ms cubic-bezier(.22,.7,.24,1); }
.team-deck-enhanced .team-biography { position: absolute; inset: 0 0 auto; width: 100%; height: var(--team-card-height, auto); margin-top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 1100ms cubic-bezier(.22,.7,.24,1), opacity 1100ms ease; }
.team-deck-enhanced .team-biography[data-neighbour] { cursor: pointer; }
.team-deck-enhanced .team-biography.is-current { cursor: default; }
.team-deck-controls { display: none; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 12px; }
.team-deck-enhanced .team-deck-controls { display: flex; }
.team-deck-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--heading); font: inherit; font-weight: 800; cursor: pointer; }
.team-deck-controls button:hover { background: var(--teal-soft); }
.team-deck-controls button:focus-visible, .team-biography:focus-visible { outline: 3px solid var(--orange-text); outline-offset: 4px; }
[data-team-status] { min-width: 4.8em; font-size: .88rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.team-page .cta { padding: 20px 0 32px; }
.team-deck-instant .team-profiles, .team-deck-instant .team-biography { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .team-deck-enhanced .team-profiles, .team-deck-enhanced .team-biography { transition: none; }
}
@media (max-width: 1100px) {
  .team-page-layout { grid-template-columns: minmax(0, 1fr); }
  .team-page-viewer { order: initial; }
  .team-page-info { gap: 16px; }
  .team-page-promise-cell, .team-page-coverage-cell { padding: 24px; }
  .team-page-promise-cell .team-page-promise,
  .team-page-coverage-cell p,
  .team-biography .team-biography-role + p { font-size: 1.15rem; }
}
@media (max-width: 899px) {
  .team-deck-enhanced .team-deck-stage { perspective: none; }
  .team-deck-enhanced .team-profiles { width: calc(100% - 32px); transform-style: flat; }
  .team-deck-enhanced .team-biography { backface-visibility: visible; }
}
@media (max-width: 760px) {
  .team-page .team-page-intro { padding-top: 24px; }
  .team-page-intro > .container, .team-page .cta > .container { width: calc(100% - 40px); }
  .team-biography { padding: 24px; }
  .team-biography .framework-portrait-frame { width: 105px; height: 156px; margin-left: 16px; }
  .team-biography .framework-portrait-placeholder { margin-left: 16px; }
}
@media (max-width: 420px) {
  .team-biography { padding: 20px; }
  .team-biography h2 { font-size: 1.5rem; }
  .team-biography .framework-portrait-frame { width: 88px; height: 132px; margin-left: 12px; }
  .team-deck-enhanced .team-profiles { width: calc(100% - 16px); }
}
@media print {
  body.team-page[data-page-frame] .team-page-layout { display: block; }
  .team-page-layout { display: block; }
  .team-deck-controls { display: none !important; }
  .team-page-viewer .team-deck-stage { overflow: visible !important; perspective: none !important; }
  .team-page-viewer .team-profiles { width: 100% !important; height: auto !important; transform: none !important; }
  .team-page-viewer .team-biography { display: flow-root !important; position: static !important; height: auto !important; margin-top: 20px !important; opacity: 1 !important; visibility: visible !important; transform: none !important; transition: none !important; break-inside: avoid; }
}

/* Team page on desktop (owner, 28 Oct 2026): "a small bit of scroll there is absolutely fine", but the
   menu never moves. The menu stays fixed; the page and footer scroll beneath it, and the enquiry
   fits on the first screen at 100-110% zoom. Type follows the window height. */
@media screen and (min-width: 1000px) {
  body.team-page { height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; }
  body.team-page > header { flex: 0 0 auto; }
  body.team-page > .team-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  body.team-page > .team-scroll > #main { min-height: 100%; display: flex; flex-direction: column; }
  body.team-page footer.site-footer { padding-block: 14px; font-size: .85rem; }
  body.team-page footer.site-footer .footer-grid { width: min(calc(100% - 80px), 1280px); flex-wrap: nowrap; gap: 14px; }
  body.team-page footer.site-footer .footer-grid > div { white-space: nowrap; }
  body.team-page footer.site-footer .footer-links { flex-wrap: nowrap; gap: 4px 12px; }
  body.team-page footer.site-footer .footer-links > a { min-height: 28px; }
  body.team-page .team-page-intro { flex: 1 0 auto; padding-top: clamp(32px, 7.3vh, 64px); }
  body.team-page .team-page-intro h1 { margin: 0 0 clamp(14px, 3vh, 26px); font-size: clamp(26px, 4.2vh, 34px); }
  body.team-page .team-page-layout { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
  body.team-page .team-page-info { height: var(--team-card-height, auto); margin-top: 2px; align-content: center; gap: clamp(10px, 2vh, 16px); }
  body.team-page :is(.team-page-promise-cell, .team-page-coverage-cell) { padding: clamp(14px, 2.6vh, 22px); }
  body.team-page :is(.team-page-promise-cell .team-page-promise, .team-page-coverage-cell p) { font-size: clamp(14px, 2.2vh, 18px); line-height: 1.4; }
  body.team-page .team-deck-enhanced .team-profiles { width: min(600px, calc(100% - 110px)); }
  body.team-page .team-biography { padding: clamp(14px, 2.4vh, 20px) 24px; }
  body.team-page .team-biography h2 { margin-bottom: 6px; font-size: clamp(20px, 3.2vh, 26px); }
  body.team-page .team-biography p { margin-bottom: clamp(5px, 1.1vh, 10px); font-size: clamp(13px, 1.95vh, 16px); line-height: 1.42; }
  body.team-page .team-biography p:last-child { margin-bottom: 0; }
  body.team-page .team-biography .team-biography-role { font-size: clamp(13px, 1.95vh, 16px); line-height: 1.35; }
  body.team-page .team-biography .team-biography-role + p { font-size: clamp(14px, 2.2vh, 18px); line-height: 1.38; }
  body.team-page .team-biography .framework-portrait-frame { width: clamp(90px, 14vh, 120px); height: clamp(135px, 21vh, 180px); margin: 0 0 8px 16px; }
  body.team-page .team-biography-availability { padding-top: 8px; }
  body.team-page .team-deck-controls { padding-top: clamp(4px, 1vh, 8px); }
  body.team-page .team-deck-controls button { min-width: 42px; min-height: 42px; padding: 8px 12px; }
  body.team-page .cta { padding: clamp(4px, 1.2vh, 12px) 0 clamp(6px, 1.5vh, 16px); }
  body.team-page .cta .cta-box { padding: 0; flex-direction: row; align-items: center; gap: 20px; }
  body.team-page .cta .cta-box > div { width: min(560px, 46vw); }
  body.team-page .cta .cta-box h2 { margin: 0 0 4px; font-size: clamp(18px, 2.8vh, 22px); }
  body.team-page .cta .cta-box p { margin: 0; font-size: clamp(13px, 1.95vh, 16px); line-height: 1.4; }
}
