/* PodsCool — Browse Teachers (teachers.html, js/marketplace/teachers.js).
 *
 * Apple's store page: a #f5f5f7 ground, a semibold headline with the brand purple-into-green on one
 * word, white search field and chips, and tall photo cards (see the cards section).
 *
 * Its own file, loaded by teachers.html alone, so it never moves styles.css's cache key.
 */

body.bt-page { background: #f5f5f7; }
.bt-page { --bt-ink: #1d1d1f; --bt-ink-2: #424245; --bt-muted: #6e6e73; --bt-tile: #f5f5f7; --bt-ease: cubic-bezier(.3, .7, .2, 1); }

/* ---------------------------------------------------------------- head */
.bt-hero { padding: 56px 0 8px; }
.bt-h1 { margin: 0; font-family: var(--head); font-weight: 600; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; color: var(--bt-ink); }
/* The brand's own light hues (Victor, 2026-11-07: "need the purple and green to match our colors. these are
   agressive and harder. we have a light hue"), purple #b3a2e8 into green #a3c893. */
.bt-grad { background: linear-gradient(100deg, #b3a2e8 0%, #a3c893 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt-tag { margin: 14px 0 0; max-width: 46ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; letter-spacing: -.012em; color: var(--bt-muted); }
/* two lines on a wide screen, not four (Gerald, 2026-11-09: "Can this also be stretched so its 2 lines and not 4") */
@media (min-width: 900px) { .bt-tag { max-width: none; } }
.bt-tag a { color: #0066cc; text-decoration: none; white-space: nowrap; }
.bt-tag a:hover { text-decoration: underline; }
.bt-search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 28px; padding: 0 16px; border-radius: 14px; background: #fff; transition: box-shadow .2s; }
.bt-search:focus-within { box-shadow: 0 0 0 2px #0071e3; }
.bt-search__ic { flex: 0 0 auto; width: 18px; height: 18px; background: #86868b; -webkit-mask: var(--search-mask) center / contain no-repeat; mask: var(--search-mask) center / contain no-repeat; }
.bt-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; padding: 13px 0; color: var(--bt-ink); }
.bt-search input::placeholder { color: #86868b; }
.bt-search__subj { flex: 0 0 auto; max-width: 44%; align-self: stretch; margin-right: -16px; padding: 0 34px 0 14px; border: 0; border-left: 1px solid #e3e3e8; border-radius: 0 14px 14px 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
  -webkit-appearance: none; appearance: none; font: 500 15px/1.2 var(--sans); color: var(--bt-ink); cursor: pointer; text-overflow: ellipsis; }
.bt-search__subj:focus-visible { outline: 2px solid #0071e3; outline-offset: -2px; }

/* ---------------------------------------------------------------- filters */
.bt-body { padding-top: 26px; padding-bottom: 96px; }
/* Hold a screen's height until the teachers arrive (the 11/12 performance pass): the empty page let the footer sit in
   view, and the cards then pushed it off (CLS 0.386 on a phone). */
#teachers-root:empty { min-height: 100vh; }
.bt-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.bt-chips::-webkit-scrollbar { display: none; }
.bt-chip { flex: 0 0 auto; border: 0; cursor: pointer; padding: 9px 16px; border-radius: 980px; background: #fff; color: var(--bt-ink); font: 500 15px/1.2 var(--sans); letter-spacing: -.01em; transition: background-color .15s, color .15s; }
.bt-chip:hover { background: #e8e8ed; }
.bt-chip.is-on:hover { background: var(--bt-ink); }
.bt-chip.is-on { background: var(--bt-ink); color: #fff; }
.bt-chip:focus-visible { outline: 3px solid rgba(0, 113, 227, .5); outline-offset: 2px; }
.bt-count { margin: 18px 0 14px; font-size: 14px; color: var(--bt-muted); }
.bt-count:empty { display: none; }

/* The grid the cards sit in. The card itself is css/teacher-card.css, shared with the home page. */
/* FOUR ACROSS (Victor, 2026-11-07: "make it 4 wide please"). The page widens to 1720px so four
   cards keep a generous width (~400px on a wide screen), and the grid steps down 4 / 3 / 2 / 1 as the window narrows,
   instead of auto-fill settling on three inside the site's narrower column. */
.bt-hero .wrap, .bt-body.wrap { max-width: 1720px; }   /* use the room a wide screen has (Victor: "gotta use the blank realestate") */
.bt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1360px) { .bt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bt-skel { display: block; height: 600px; border-radius: 30px; }

.bt-empty { margin: 32px 0; font-size: 17px; color: var(--bt-muted); }
.bt-empty a { color: #0066cc; }

@media (max-width: 640px) {
  .bt-hero { padding-top: 36px; }
  .bt-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bt-chips { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
}

/* Spotlight first (Gerald, 2026-11-08): its own row above the grid, present only when someone is spotlighted. */
.bt-spot { margin: 0 0 28px; }
/* THE SUBJECT ROWS (Gerald, 2026-11-09, pointing at apple.com/store's rows): a heading in two tones, then the
   teachers of that subject in a row that scrolls sideways, arrows on the right. */
.bt-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.bt-row { min-width: 0; }
.bt-rows[hidden], .bt-grid[hidden] { display: none; }
.bt-row__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.bt-row__h { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; color: #1d1d1f; text-wrap: balance; }
.bt-row__h span { color: #86868b; }
.bt-row__nav { display: flex; gap: 8px; flex: none; }
.bt-row__nav[hidden] { display: none; }
.bt-rail-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #1d1d1f; background: #e8e8ed; }
.bt-rail-btn:hover { background: #dcdce1; }
.bt-rail-btn[disabled] { opacity: .4; cursor: default; }
.bt-rail-btn:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.bt-rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 18px; margin: -4px -2px -18px; }
.bt-rail::-webkit-scrollbar { display: none; }
.bt-rail > .bt-card { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; }
@media (max-width: 1360px) { .bt-rail > .bt-card { flex-basis: calc((100% - 48px) / 3); } }
@media (max-width: 1020px) { .bt-rail > .bt-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) {
  .bt-rows { gap: 34px; }
  .bt-rail { gap: 14px; margin: -4px -16px -18px; padding: 4px 16px 18px; scroll-padding-inline: 16px; }
  .bt-rail > .bt-card { flex-basis: 84%; }
  .bt-row__nav { display: none; }
}
.bt-spot[hidden] { display: none; }
.bt-spot__h { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #1d1d1f; }
.bt-spot__h::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #b3a2e8, #a3c893); }

/* Message now on each card (Gerald, 2026-11-08), above the card's stretched storefront link (z 3) and
   its glass panel (z 4), top-right; below the Example badge when a card has one. */
.bt-msg { position: absolute; top: 18px; right: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600;
  color: #1d1d1f; text-decoration: none; cursor: pointer;
  background: rgba(255, 255, 255, .88);   /* no backdrop blur: see teacher-card.css, 2026-11-11 */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 18px -8px rgba(0, 0, 0, .35); }
.bt-msg:hover { background: #fff; }
.bt-msg:focus-visible { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: 2px; }
.bt-msg[disabled] { opacity: .7; cursor: default; }
.bt-card:has(.bt-example) .bt-msg { top: 58px; }

/* "You" on the viewer's own card (teachers.js markYou), when a teacher looks up other teachers: on this page
   and in the dashboard's Find Teachers, which loads this sheet. Blue, the accent on every platform. */
.bt-you { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: #0066cc; color: #fff;
  font-family: var(--body, inherit); font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }

/* DARK, IN THE DASHBOARD'S FIND TEACHERS (dashboard-views.js viewReviewSearch, .ft-page). This sheet was
   written for the public page, which stays light, so in a dark dashboard the search field was a white box
   with near-white text in it and the row headings were #1d1d1f on #14151a. The dashboard's own Apple dark
   values: ink #f5f5f7, supporting #a1a1a6 and #98989d (web --ap-2 / --ap-3), white-at-8% fields, #2997ff
   links. The cards keep their own colors, as the public page's do. */
.pc-dark .ft-page { --bt-ink: #f5f5f7; --bt-ink-2: #d1d1d6; --bt-muted: #a1a1a6; --bt-tile: #1c1c1e; }
.pc-dark .ft-page .bt-search { background: rgba(255, 255, 255, .08); }
.pc-dark .ft-page .bt-search:focus-within { box-shadow: 0 0 0 2px #2997ff; }
.pc-dark .ft-page .bt-search__ic { background: #98989d; }
.pc-dark .ft-page .bt-search input::placeholder { color: #98989d; }
.pc-dark .ft-page .bt-search__subj { border-left-color: rgba(255, 255, 255, .14); color-scheme: dark; }
.pc-dark .ft-page .bt-row__h, .pc-dark .ft-page .bt-spot__h { color: #f5f5f7; }
.pc-dark .ft-page .bt-row__h span { color: #98989d; }
.pc-dark .ft-page .bt-rail-btn { color: #f5f5f7; background: rgba(255, 255, 255, .12); }
.pc-dark .ft-page .bt-rail-btn:hover { background: rgba(255, 255, 255, .18); }
.pc-dark .ft-page .bt-empty a { color: #2997ff; }
