/* Faculty: a photo grid and the sheet that opens on a name. Shared by Academy and PRO (moved out of academy.css 2026-11-01, unchanged). */
.fac{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 10px}
.fac__a{display:grid;align-content:start;gap:8px;min-height:44px;color:var(--ink);text-decoration:none}
.fac__ph{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;border-radius:var(--r);background:var(--well)}
.fac__ph img{width:100%;height:100%;object-fit:cover;object-position:var(--px,50%) var(--py,30%);transform:scale(var(--z,1));transform-origin:var(--px,50%) var(--py,30%)}
.fac__a b{font-weight:700;font-size:.875rem;line-height:1.25}
.fac__last{display:none}
.fac__a:hover .fac__ph{outline:2px solid var(--ink);outline-offset:0}
.fac__a:hover b{text-decoration:underline;text-underline-offset:.22em}
@media (min-width:760px){
  .fac{grid-template-columns:repeat(8,minmax(0,1fr));gap:16px}
  .fac__a b{font-size:.9375rem}
  .fac__last{display:inline}
  .fac--7{grid-template-columns:repeat(7,minmax(0,1fr))}
  .fac--5{grid-template-columns:repeat(5,minmax(0,1fr))} /* owner 2026-11-12: Academy, 10 teachers in two rows of 5 */
  .fac--pro{grid-template-columns:repeat(6,minmax(0,1fr))} /* owner 2026-11-12: 12 PRO teachers, two even rows */
}
/* the open state: a sheet with the same photo, larger, and the bio */
.tsheet{position:fixed;inset:0;z-index:96;display:none;align-items:end;justify-content:center;padding:0}
.tsheet:target{display:flex}
/* with script, js/faculty.js opens and closes a sheet by a class and never by the URL hash (the :target rule above is for visitors without script) */
html.js .tsheet:target{display:none}
html.js .tsheet.is-open{display:flex}
html.sheet-open{overflow:hidden}
/* signed in on staging, the WordPress toolbar sits over the top of the page: start below it so the close button is never covered */
body.admin-bar .tsheet{top:32px}
@media (max-width:782px){body.admin-bar .tsheet{top:46px}}
@media (prefers-reduced-motion:no-preference){
  html.js .tsheet.is-open .tsheet__bg{animation:sheet-fade .22s ease-out}
  html.js .tsheet.is-open .tsheet__card{animation:sheet-in .32s cubic-bezier(.16,1,.3,1)}
}
@keyframes sheet-fade{from{opacity:0}}
@keyframes sheet-in{from{opacity:0;transform:translateY(18px)}}
.tsheet__bg{position:absolute;inset:0;background:color-mix(in oklab,var(--ink) 55%,transparent)}
.tsheet__card{position:relative;display:flex;width:min(780px,100%);max-height:calc(100svh - 24px);border-radius:var(--r) var(--r) 0 0;background:var(--paper);color:var(--ink);box-shadow:inset 0 6px 0 var(--g)}
.tsheet__body{display:block;width:100%;min-width:0;overflow:auto;overscroll-behavior:contain;padding:20px 20px 24px;border-radius:inherit}
/* the X stays on screen however long the bio is (the card does not scroll, its body does) */
.tsheet__top{position:absolute;top:14px;right:14px;z-index:3;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;height:44px;padding:0 16px 0 18px;border-radius:999px;background:var(--ink);color:var(--paper);font:700 .9375rem/1 var(--text);text-decoration:none}
.tsheet__top svg{width:16px;height:16px}
.tsheet__top:hover{background:var(--ink-2)}
.tsheet__top:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
/* a phone stacks the photo over the text in plain flow: as grid rows, the photo (overflow:hidden) shrank to 0 height inside the scrolling body */
.tsheet__card .fac__ph{width:min(220px,56vw);margin:0 0 18px}
.tsheet__txt{display:grid;align-content:center;gap:10px;min-width:0}
.tsheet h3{padding-right:104px;font-family:var(--disp);font-weight:400;font-size:clamp(1.9rem,1.5rem + 1.4vw,2.6rem);line-height:1.02;letter-spacing:-.01em}
.tsheet__role{font-weight:700;font-size:var(--t-body);line-height:1.35}
.tsheet__bio{display:grid;gap:12px;font-size:var(--t-body);line-height:1.55;color:var(--ink-2);max-width:62ch}
.tsheet__bio p{margin:0}
.tsheet__x{justify-self:start;margin-top:8px}
@media (min-width:640px){
  .tsheet{align-items:center;padding:20px}
  .tsheet__card{border-radius:var(--r)}
  .tsheet__body{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:32px;padding:32px}
  .tsheet__top{top:16px;right:16px}
  .tsheet__card .fac__ph{width:auto;margin:0;align-self:start} /* owner 2026-11-12: photos stay put, never sticky */
}

/* PRO: the guest instructor tile became one bold line under the grid (owner 2026-11-12) */
.fac__guest{margin:clamp(28px,4vw,44px) 0 0;font-family:var(--disp);font-weight:400;font-size:clamp(1.75rem,1.2rem + 2.2vw,2.75rem);line-height:1.05;letter-spacing:-.01em;text-wrap:balance;color:var(--light-2)}
