/* =========================================================
   Our Teachers page — extra styles (uses home.css + gallery.css for hero, chips, CTA)
   ========================================================= */

/* ---------- Toolbar ---------- */
.t-toolbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.t-toolbar .g-filters { padding: 0; }
.t-search { position: relative; flex: 1 1 220px; max-width: 320px; display: flex; align-items: center; }
.t-search svg { position: absolute; left: 14px; color: var(--body); pointer-events: none; }
.t-search input { width: 100%; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 16px 0 40px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.t-search input:focus { border-color: var(--navy); outline: 3px solid rgba(216, 176, 81, .45); outline-offset: 0; }
.t-filter { display: flex; align-items: center; gap: 10px; min-width: 0; }
.t-filter__label { font-size: 13px; font-weight: 700; color: var(--body); white-space: nowrap; }
.t-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--body); }
.t-sort select { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }

/* ---------- Grid + cards ---------- */
.t-body { padding-top: 24px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.t-count { font-size: 14px; color: var(--body); font-weight: 600; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 160px; transition: transform .2s, box-shadow .2s; }
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.t-card__photo { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; max-height: 300px; width: 100%; padding: 0; border: 0; background: var(--ph); cursor: pointer; overflow: hidden; }
.t-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .4s; }
.t-card:hover .t-card__photo img { transform: scale(1.04); }
.t-card__initial { font-family: var(--font-display); font-weight: 800; font-size: 56px; color: var(--navy); }
.t-badge { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.t-badge--lpt { background: var(--navy); color: var(--gold); }
.t-badge--tefl { background: var(--gold); color: var(--ink); }
.t-badge--pro { background: #fff; color: var(--navy); box-shadow: 0 0 0 1px var(--line); }
.t-vid { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.t-vid::before { content: ""; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.t-vid.is-soon { background: rgba(14, 25, 54, .72); color: #fff; }
.t-vid.is-soon::before { display: none; }
.t-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.t-card__body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1.3; }
.t-cred { font-size: 13px; font-weight: 700; color: var(--gold-text); }
.t-exp { font-size: 13px; color: var(--body); }
.t-card .mu-tags { margin-top: 2px; }
.t-card__btns { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.t-card__btns .mu-btn { flex: 1; padding: 0 8px; font-size: 13px; }
.t-empty { padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--body); }

/* ---------- Profile panel ---------- */
.t-profile { width: min(880px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: #fff; box-shadow: var(--shadow); overflow: auto; }
.t-profile[open] { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.t-profile::backdrop { background: rgba(14, 25, 54, .65); }
.t-profile__close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.t-profile__media { position: relative; min-height: 360px; background: var(--ph); display: flex; align-items: center; justify-content: center; }
.t-profile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.t-profile__media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.t-profile__body { padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.t-profile__name { font-family: var(--font-display); font-size: 26px; font-weight: 800; padding-right: 40px; }
.t-profile__cred { font-size: 14px; font-weight: 700; color: var(--gold-text); }
.t-profile__switch { padding: 2px 0; }
.t-profile__stats { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.t-profile__label { font-size: 13px; font-weight: 700; color: var(--body); margin-top: 4px; }
.t-profile__book { margin-top: 10px; }

@media (max-width: 760px) {
  .t-profile[open] { grid-template-columns: 1fr; }
  .t-profile__media { min-height: 0; aspect-ratio: 4 / 3; }
  .t-profile__body { padding: 22px; }
}
@media (max-width: 640px) {
  .t-toolbar__inner { gap: 10px; }
  .t-search { max-width: none; flex-basis: 100%; }
  .t-filter { flex-basis: 100%; overflow: hidden; }
  .t-filter .g-filters { overflow-x: auto; }
  .t-sort { margin-left: 0; }
  .g-filterbar.t-toolbar { position: static; }
  .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .t-card__body { padding: 12px; gap: 6px; }
  .t-card__body h3 { font-size: 15px; }
  .t-card .mu-tags li:nth-child(n+2) { display: none; }
  .t-card__btns { flex-direction: column; }
  .t-badge { left: 8px; top: 8px; font-size: 11px; }
  .t-vid { left: 8px; bottom: 8px; font-size: 11px; padding: 4px 8px; }
}
