/* v1.4.47 — Advisor profile deterministic grid
   Contact facts, service blocks and stats are independent groups.
   Toggle combinations therefore keep a predictable visual hierarchy. */

/* Identity spacing */
.home-advisor--no-note .home-advisor-role{margin-bottom:0!important}
.home-advisor--no-note .home-advisor-contact-grid,
.home-advisor--no-note .home-advisor-services{margin-top:14px!important}

/* 1) Contact facts: Hotline / Region only. */
.home-advisor-contact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:20px;
  border:1px solid #e4eaf0;
  border-radius:8px;
  overflow:hidden;
  background:#fbfcfd;
}
.home-advisor-contact-grid--count-1{grid-template-columns:1fr}
.home-advisor-contact{min-width:0;padding:14px 16px 15px;background:#fbfcfd}
.home-advisor-contact + .home-advisor-contact{border-left:1px solid #e4eaf0}
.home-advisor-contact span{display:block;margin-bottom:6px;color:#0068d7;font-size:10.5px;line-height:1.25;font-weight:800;letter-spacing:.11em}
.home-advisor-contact strong{display:block;color:#001b3f;font-size:16px;line-height:1.3;font-weight:700}

/* 2) Support services: never mix with contact facts. */
.home-advisor-services{
  display:grid!important;
  gap:0!important;
  margin-top:12px!important;
  border:1px solid #e4eaf0!important;
  border-radius:8px!important;
  overflow:hidden!important;
  background:#fbfcfd!important;
}
.home-advisor-services--count-1{grid-template-columns:1fr!important}
.home-advisor-services--count-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.home-advisor-services--count-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.home-advisor-service{border:0!important;border-left:1px solid #e4eaf0!important;background:#fbfcfd!important;padding:14px 16px 15px!important}
.home-advisor-service:first-child{border-left:0!important}
.home-advisor-service--wide{grid-column:auto!important}

/* 3) Stats: column count follows the number enabled. */
.home-advisor-stats{margin-top:12px!important}
.home-advisor-stats--count-1{grid-template-columns:minmax(0,260px)!important}
.home-advisor-stats--count-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.home-advisor-stats--count-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.home-advisor-stats--count-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.home-advisor-stats--count-1 .home-advisor-stat,
.home-advisor-stats--count-2 .home-advisor-stat,
.home-advisor-stats--count-3 .home-advisor-stat,
.home-advisor-stats--count-4 .home-advisor-stat{border-top:0!important}
.home-advisor-stats--count-2 .home-advisor-stat:nth-child(2),
.home-advisor-stats--count-3 .home-advisor-stat:nth-child(3),
.home-advisor-stats--count-4 .home-advisor-stat:nth-child(4){border-right:0!important}

/* CTA stays visually attached to the last active information group. */
.home-advisor-actions{margin-top:18px!important}

@media(max-width:980px){
  .home-advisor-stats--count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .home-advisor-stats--count-4 .home-advisor-stat:nth-child(2){border-right:0!important}
  .home-advisor-stats--count-4 .home-advisor-stat:nth-child(3){border-top:1px solid #e4eaf0!important}
  .home-advisor-stats--count-4 .home-advisor-stat:nth-child(4){border-top:1px solid #e4eaf0!important;border-right:0!important}
  .home-advisor-services--count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .home-advisor-services--count-3 .home-advisor-service:nth-child(3){grid-column:1 / -1;border-left:0!important;border-top:1px solid #e4eaf0!important}
  .home-advisor-stats--count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .home-advisor-stats--count-3 .home-advisor-stat:nth-child(2){border-right:0!important}
  .home-advisor-stats--count-3 .home-advisor-stat:nth-child(3){grid-column:1 / -1;border-top:1px solid #e4eaf0!important;border-right:0!important}
}

@media(max-width:640px){
  .home-advisor-contact-grid,
  .home-advisor-services--count-2,
  .home-advisor-services--count-3{grid-template-columns:1fr!important}
  .home-advisor-contact + .home-advisor-contact{border-left:0;border-top:1px solid #e4eaf0}
  .home-advisor-services .home-advisor-service{border-left:0!important;border-top:1px solid #e4eaf0!important}
  .home-advisor-services .home-advisor-service:first-child{border-top:0!important}
  .home-advisor-services--count-3 .home-advisor-service:nth-child(3){grid-column:auto!important}

  /* Mobile stats keep a compact 2-column rhythm; an odd last item spans the row. */
  .home-advisor-stats--count-1{grid-template-columns:1fr!important;width:100%}
  .home-advisor-stats--count-2,
  .home-advisor-stats--count-3,
  .home-advisor-stats--count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .home-advisor-stats--count-3 .home-advisor-stat:nth-child(3){grid-column:1 / -1!important}
  .home-advisor-contact span{font-size:10px}
  .home-advisor-contact strong{font-size:15px}
}
