/* Area specialist card. Used on the IDX results page (built by boffo-idx-results.js) and on community pages (PHP).
   Message box on the left, 200 x 200 photo on the right; on phones the photo goes on top. */
.boffo-ae {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 18px;
  align-items: center;
  margin: 0 0 14px;
  font-family: Ubuntu, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0d2436;
}
.boffo-ae__msg {
  position: relative;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff9ed;
  border: 1px solid #e5d6ae;
}
.boffo-ae__msg::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: #fff9ed;
  border-top: 1px solid #e5d6ae;
  border-right: 1px solid #e5d6ae;
  transform: rotate(45deg);
}
.boffo-ae .boffo-ae__text { margin: 0 0 10px; font-size: 16px; line-height: 1.5; color: #0d2436; }
.boffo-ae .boffo-ae__who { margin: 0 0 12px; font-size: 14px; line-height: 1.35; color: #0d2436; }
.boffo-ae .boffo-ae__who a { font-weight: 700; color: #0d2436 !important; text-decoration: none; }
.boffo-ae .boffo-ae__who a:hover { text-decoration: underline; }
.boffo-ae .boffo-ae__who span { display: block; color: #5a6672; }
.boffo-ae .boffo-ae__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.boffo-ae a.boffo-ae__btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  font: 600 13px/1 Ubuntu, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.boffo-ae a.boffo-ae__btn--gold { background: #98783a; color: #fff !important; border: 1.5px solid #98783a; }
.boffo-ae a.boffo-ae__btn--line { background: transparent; color: #0d2436 !important; border: 1.5px solid #0d2436; }
.boffo-ae a.boffo-ae__btn:hover { opacity: 0.9; }
.boffo-ae a.boffo-ae__btn:focus-visible { outline: 3px solid #98783a; outline-offset: 2px; }
.boffo-ae__photo {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 14px;
  background: #e8ecf0;
}
.boffo-ae--compact { grid-template-columns: minmax(0, 1fr) 132px; margin: 0 0 18px; }
.boffo-ae--compact .boffo-ae__photo { width: 132px; height: 132px; }
.boffo-ae--compact .boffo-ae__msg { padding: 14px 16px; }
.boffo-ae--compact .boffo-ae__text { font-size: 15px; margin-bottom: 8px; }

@media (max-width: 700px) {
  .boffo-ae,
  .boffo-ae--compact { grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: stretch; }
  .boffo-ae__photo { order: -1; justify-self: center; }
  .boffo-ae--compact .boffo-ae__photo { width: 132px; height: 132px; }
  .boffo-ae__msg::after { top: -9px; right: auto; left: 50%; margin: 0 0 0 -8px; transform: rotate(-45deg); }
}

/* Specialist on a featured listing card (home page) and on a listing's detail page */
.boffo-listing__expert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font: 600 13px/1.2 Ubuntu, system-ui, sans-serif;
  color: #0d2436;
}
.boffo-listing__expert img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex: none;
}
.boffo-ae--details { margin: 18px 0; }
@media (max-width: 700px) {
  /* On phones the card sits between the description and the basic information panel. Generous space below it keeps the
     buttons clear of the floating AI Redesign pill and the chat bubble. */
  .boffo-ae--details { margin: 22px 0 36px; scroll-margin-bottom: 160px; }
}

/* BEGIN boffo-cream-sweep (William, 7:24 PM ET: no cream box with a tan or gold border, sitewide. Backgrounds and box borders only.) */
.boffo-ae__msg {
	background: #fff;
	border: 1px solid #e5e7eb;
}
.boffo-ae__msg::after {
	background: #fff;
	border-top: 1px solid #e5e7eb;
	border-right: 1px solid #e5e7eb;
}
/* END boffo-cream-sweep */
