/* ---------- Homepage lawyer showcase (din-style cards) ---------- */
.featured-lawyers__showcase { margin-top: 26px; }

.featured-lawyers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.featured-lawyers__grid .lawyer-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--jt2-line, #D9E3EC);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(18, 44, 82, 0.06);
  text-align: right;
  overflow: hidden;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.featured-lawyers__grid .lawyer-card:hover {
  border-color: var(--jt2-navy-light, #1866B4);
  box-shadow: 0 14px 30px rgba(18, 44, 82, 0.12);
  transform: translateY(-2px);
}

.featured-lawyers__grid .lawyer-card__media {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--jt2-tint, #F2F7FB);
  aspect-ratio: 1;
}

.featured-lawyers__grid .lawyer-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-lawyers__grid .lawyer-card__media--initials { text-decoration: none; }

.featured-lawyers__grid .lawyer-card__initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 30px;
  font-weight: 800;
  color: var(--jt2-navy, #14477D);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.9), transparent 40%),
    linear-gradient(135deg, rgba(20, 71, 125, 0.08), rgba(24, 102, 180, 0.2));
}

.featured-lawyers__grid .lawyer-card__body { min-width: 0; }

.featured-lawyers__grid .lawyer-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.featured-lawyers__grid .lawyer-card__name {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.featured-lawyers__grid .lawyer-card__name a {
  color: var(--jt2-navy-deep, #0E2E4F);
  text-decoration: none;
}

.featured-lawyers__grid .lawyer-card__name a:hover { color: var(--jt2-navy-light, #1866B4); }

.featured-lawyers__grid .lawyer-card__status {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--jt2-tint, #F2F7FB);
  color: var(--jt2-navy, #14477D);
  border: 1px solid var(--jt2-line, #D9E3EC);
}

.featured-lawyers__grid .lawyer-card__status--sponsored {
  background: #FDF1EC;
  color: var(--jt2-coral-text, #B5431E);
  border-color: #F3CDBC;
}

.featured-lawyers__grid .lawyer-card__firm,
.featured-lawyers__grid .lawyer-card__meta {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--jt2-muted, #5B6B7C);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-lawyers__grid .lawyer-card__summary {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--jt2-text, #22303E);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-lawyers__grid .lawyer-card__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.featured-lawyers__grid .lawyer-card__proof span {
  font-size: 11px;
  font-weight: 600;
  color: var(--jt2-navy, #14477D);
  background: var(--jt2-tint, #F2F7FB);
  border-radius: 999px;
  padding: 3px 9px;
}

.featured-lawyers__grid .lawyer-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.featured-lawyers__grid .lawyer-card__actions .button {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  padding: 8px 12px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .featured-lawyers__grid { grid-template-columns: 1fr; }

  .featured-lawyers__grid .lawyer-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .featured-lawyers__grid .lawyer-card__media { width: 76px; height: 76px; }
  .featured-lawyers__grid .lawyer-card__initials { font-size: 24px; }
}

/* Stock-photo containers retired 2026-07-02 (owner order: no fake people).
   Belt and braces for cached markup that still carries them. */
.jt2-hero__figure,
.ask-lawyer__visual,
.verified-lawyer-showcase__visual { display: none !important; }

/* ---------- LawyerScout premium flag markers ---------- */
.lmap-flag {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 10px 18px rgba(14, 46, 79, 0.28));
}

.lmap-flag__card {
  background: #fff;
  border: 1.5px solid var(--jt2-navy, #14477D);
  border-radius: 12px;
  padding: 9px 12px 10px;
  min-width: 150px;
  max-width: 190px;
  text-align: right;
  font-family: 'Assistant', 'Heebo', sans-serif;
}

.lmap-flag__name {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--jt2-navy-deep, #0E2E4F);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lmap-flag__area {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--jt2-muted, #5B6B7C);
  margin-top: 1px;
}

.lmap-flag__stars {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #b8860b;
  margin-top: 2px;
}

.lmap-flag__cta {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}

.lmap-flag__btn {
  flex: 1;
  display: inline-block;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--jt2-navy, #14477D);
  color: #fff;
  white-space: nowrap;
}

.lmap-flag__btn--call {
  background: #1E7E4B;
}

.lmap-flag__btn:hover { opacity: 0.92; color: #fff; }

.lmap-flag__pole {
  width: 2.5px;
  height: 16px;
  background: var(--jt2-navy, #14477D);
  display: block;
}

.lmap-flag__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--jt2-coral, #CC4720);
  border: 2.5px solid #fff;
  display: block;
  margin-top: -2px;
}

/* Premium flag: office logo */
.lmap-flag__logo {
  display: block;
  max-width: 120px;
  max-height: 34px;
  object-fit: contain;
  margin: 0 auto 6px;
}
