/* css/tutor-card.css - the tutor card, from tt_lsui_tutor_card() (inc/listing-ui.php).
   /tutors (with listing.css) and the homepage Featured Tutors strip. Values from tokens.css. */

.tt-ls-card{ display:grid; grid-template-columns:96px minmax(0,1fr); gap:var(--sp-4); font-family:var(--font-body); color:var(--ink-900);
  padding:20px; background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--shadow-card); transition:box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.tt-ls-card:hover{ box-shadow:var(--shadow-lift); border-color:var(--blue-100); }
.tt-ls-card__meta,.tt-ls-card__aside{ grid-column:1 / -1; }
@media (min-width:768px){
  .tt-ls-card{ grid-template-columns:132px minmax(0,1fr) minmax(0,1fr); gap:var(--sp-5); padding:var(--sp-5); }
  .tt-ls-card__meta{ grid-column:auto; padding-left:var(--sp-5); border-left:1px solid var(--line); }
  .tt-ls-card__aside{ grid-column:2 / -1; }
}
@media (min-width:1200px){
  .tt-ls-card{ grid-template-columns:132px minmax(0,1fr) minmax(0,.9fr) minmax(0,1.15fr); }
  .tt-ls-card__aside{ grid-column:auto; padding-left:var(--sp-5); border-left:1px solid var(--line); }
  .tt-ls-card__acts{ margin-top:auto; }
}

.tt-ls-card__media{ position:relative; align-self:start; padding-bottom:14px; }   /* room for the badge on the photo's bottom edge */
.tt-ls-card__media > a:not(.tt-ls-heart){ display:block; }   /* the photo link; the signed-out heart is an <a> too and must stay flex (centred) */
.tt-ls-card__photo{ display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:var(--r);
  background:var(--blue-50); border:1px solid var(--line); }
/* owner, 26 Sep: a solid green tag centred on the photo's bottom edge, half on it */
.tt-ls-card__badge{ position:absolute; left:50%; bottom:14px; transform:translate(-50%, 50%); display:inline-flex; align-items:center; gap:4px;
  padding:3px var(--sp-2); border-radius:6px; background:var(--green-700); box-shadow:0 2px 6px rgba(11,37,69,.18);
  font-size:12px; font-weight:700; line-height:1.5; color:var(--white); white-space:nowrap; }
.tt-ls-card__save{ margin:0; }
.tt-ls-heart{ position:absolute; right:6px; top:6px; display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; padding:0; border:0; border-radius:50%; background:var(--white);
  box-shadow:var(--shadow-sm); color:var(--blue-600); cursor:pointer; }
.tt-ls-heart:hover{ color:var(--blue-700); background:var(--blue-50); }
.tt-ls-heart.is-on{ color:#C0284A; }                                             /* 5.76:1 on white */
.tt-ls-heart.is-on svg{ fill:currentColor; }
@media (max-width:767px){ .tt-ls-heart{ right:4px; top:4px; width:32px; height:32px; } }

.tt-ls-card__name{ margin:0; font:700 18px/1.35 var(--font-display); letter-spacing:-.01em; }
.tt-ls-card__name a{ font-family:inherit; color:var(--blue-700); text-decoration:none; overflow-wrap:anywhere; }
.tt-ls-card__name a:hover{ text-decoration:underline; }
.tt-ls-rating{ display:flex; align-items:center; gap:var(--sp-1); margin:var(--sp-1) 0 0; font-size:14px; color:var(--ink-700); }
.tt-ls-rating .tt-icon{ color:var(--amber-600); fill:currentColor; }
.tt-ls-rating strong{ color:var(--ink-900); }

.tt-ls-facts{ margin:var(--sp-3) 0 0; }
.tt-ls-card__meta{ margin:0; }
.tt-ls-fact{ position:relative; padding-left:28px; }
.tt-ls-fact + .tt-ls-fact{ margin-top:var(--sp-3); }
.tt-ls-fact dt{ font-size:14px; font-weight:500; line-height:1.4; color:var(--ink-500); }
.tt-ls-fact dd{ margin:2px 0 0; font-size:14px; font-weight:600; line-height:1.45; color:var(--ink-900); overflow-wrap:anywhere; }
.tt-ls-fact__icon{ position:absolute; left:0; top:1px; display:flex; color:var(--blue-600); }

.tt-ls-modes{ display:flex; flex-wrap:wrap; gap:6px; margin:var(--sp-1) 0 0; padding:0; list-style:none; }
.tt-ls-mode{ display:inline-flex; align-items:center; gap:4px; min-height:28px; padding:0 10px;
  border-radius:var(--r-pill); font-size:14px; font-weight:600; line-height:1; }
.tt-ls-mode--online{ background:var(--green-50); color:var(--green-700); }
.tt-ls-mode--offline{ background:var(--blue-50); color:var(--blue-700); }
.tt-ls-mode--home{ background:#F4EFFD; color:#6B3FA0; }

.tt-ls-card__about{ margin:0; font-size:16px; line-height:1.6; color:var(--ink-700);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.tt-ls-card__acts{ display:flex; flex-wrap:wrap; gap:var(--sp-3); }
.tt-ls-card__acts > *{ flex:1 1 140px; }
.tt-ls-card__acts form{ display:flex; margin:0; }
.tt-ls-card__acts .tt-btn{ width:100%; padding:0 var(--sp-3); white-space:nowrap; }
/* about, phone line, then the buttons, which sit at the foot of the card on wide screens */
.tt-ls-card__aside{ display:flex; flex-direction:column; gap:var(--sp-3); }
.tt-ls-card__aside > .tt-ls-card__acts{ padding-top:var(--sp-1); }

/* Slider card (homepage): the phone layout at every width, as tall as its row, buttons at the foot. */
.tt-ls-card.tt-ls-card--slide{ flex:1 1 auto; min-width:0; grid-template-columns:88px minmax(0,1fr);
  grid-template-rows:auto auto 1fr; gap:var(--sp-4); padding:var(--sp-4); }
.tt-ls-card--slide .tt-ls-card__meta{ grid-column:1 / -1; padding-left:0; border-left:0; }
.tt-ls-card--slide .tt-ls-card__aside{ grid-column:1 / -1; padding-left:0; border-left:0; justify-content:flex-end; }
.tt-ls-card--slide .tt-ls-card__name{ font-size:17px; }
.tt-ls-card--slide .tt-ls-card__acts{ gap:var(--sp-2); }
.tt-ls-card--slide .tt-ls-card__acts > *{ flex-basis:120px; }
.tt-ls-card--slide .tt-ls-card__acts .tt-btn{ padding:0 10px; }
