/* Melupia teacher directory (/teachers/… on melupia.com and en.melupia.com; pages by lib/teacher_pages.php).
   Loaded after site.css and learn.css and uses their colour tokens (light and dark), the header, the answer box,
   the FAQ, the call-to-action box and the footer. */

.tsection { margin-top: 36px; }
.tsection h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem); margin-bottom: 8px; }
.tsection.prose h2 { margin-top: 0; }
.tempty { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 18px; padding: 16px 18px; }
.tnote { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.tguide, .tall { margin-top: 18px; }
.tguide a, .tall a, .tsection > p a, .hub > p a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }

/* Teacher cards. */
.tlist { list-style: none; margin: 14px 0 8px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .tlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tcard { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; height: 100%; text-decoration: none;
  color: var(--body); background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.tcard:hover { border-color: var(--honey); }
.tmain { display: grid; gap: 5px; min-width: 0; }
.tmain b { color: var(--ink); font-size: 1.08rem; overflow-wrap: anywhere; }
.tplace { font-size: 14px; color: var(--muted); }
.tmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* The photo, or a monogram on one of six colours. */
.tface { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px; line-height: 1; background: var(--tile); color: var(--tile-ink); flex-shrink: 0; }
.tface.c1 { background: var(--honey-soft); color: var(--honey-ink); }
.tface.c2 { background: var(--good-soft); color: var(--good-ink); }
.tface.c3 { background: var(--accent-soft); color: var(--accent); }
.tface.c4 { background: var(--meadow); color: var(--meadow-ink); }
.tface.c5 { background: var(--bad-soft); color: var(--bad-ink); }
.tface--big { width: 96px; height: 96px; font-size: 40px; }

.tchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tchips li { font-size: 13px; background: var(--tray); color: var(--body); border-radius: 999px; padding: 2px 10px; }
.tbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; background: var(--good-soft); color: var(--good-ink);
  border-radius: 999px; padding: 2px 10px; }
.tbadge::before { content: "✓"; }
.trate { font-size: 14px; font-weight: 800; color: var(--honey-ink); }

/* Cities and the online page. */
.tplaces { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tplaces a { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
  text-decoration: none; color: var(--ink); font-weight: 700; }
.tplaces a:hover { border-color: var(--honey); }
.tplaces small { color: var(--muted); font-weight: 400; }

/* A teacher's page. */
.thead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 18px; }
.thead h1 { margin-bottom: 4px; overflow-wrap: anywhere; }
.thead p { margin: 0 0 6px; }
.tfacts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: center; margin: 0 0 8px; }
.tfacts dt { font-weight: 800; color: var(--ink); font-size: 15px; }
.tfacts dd { margin: 0; }
.tbio p { margin: 0 0 12px; overflow-wrap: anywhere; }
.tstats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tstats li { width: 126px; display: grid; gap: 2px; text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; }
.tstats b { font-size: 1.2rem; color: var(--ink); }
.tstats span { font-size: 12.5px; color: var(--muted); }
.trate-big { font-weight: 700; color: var(--ink); }
.treviews { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.treviews li { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.treviews p { margin: 0 0 6px; overflow-wrap: anywhere; }
.tstars { color: var(--honey); letter-spacing: 2px; }
.tby { font-size: 14px; color: var(--muted); }
.treply { margin-top: 8px; padding-inline-start: 12px; border-inline-start: 3px solid var(--line); color: var(--body); font-size: 14.5px; }
